Page 1 of 1

Problem with simple line using Canvas actor

PostPosted: Sun Dec 10, 2006 12:17 pm
by Kodo
Why does the following code produce a line that has an irregular start and end (as in the image)? What I need is a 5 pixel high solid line drawn horizontally for 30 pixels.

setpen(0, 159, 0, 0, 5);
lineto(30, 0);

in game (the green bar is the result, the blue box is just a placeholder object)...

Image

I'm sure its something daft, but I can't see what the problem might be :(

PostPosted: Sun Dec 10, 2006 1:11 pm
by makslane
It's a bug in the lineto function.

PostPosted: Sun Dec 10, 2006 1:26 pm
by Kodo
ok, I'll find a different way to do what I need for now. Thanks for the fast reply!

PostPosted: Sun Dec 10, 2006 1:30 pm
by Fuzzy
Hey Makslane, can you add functionality to GE for us so that we can write(or read) directly to the Canvas actors display? Like access to a pointer?

PostPosted: Sun Dec 10, 2006 1:50 pm
by Kodo
Fuzzy wrote:Hey Makslane, can you add functionality to GE for us so that we can write(or read) directly to the Canvas actors display? Like access to a pointer?


That would be incredibly useful !

PostPosted: Sun Dec 10, 2006 6:20 pm
by makslane
In my task list