Problem with simple line using Canvas actor
Posted: Sun Dec 10, 2006 12:17 pm
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)...
I'm sure its something daft, but I can't see what the problem might be
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)...
I'm sure its something daft, but I can't see what the problem might be