Problem with simple line using Canvas actor

Non-platform specific questions.

Problem with simple line using Canvas actor

Postby Kodo » 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)...

Image

I'm sure its something daft, but I can't see what the problem might be :(
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby makslane » Sun Dec 10, 2006 1:11 pm

It's a bug in the lineto function.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Kodo » Sun Dec 10, 2006 1:26 pm

ok, I'll find a different way to do what I need for now. Thanks for the fast reply!
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby Fuzzy » Sun Dec 10, 2006 1:30 pm

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?
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby Kodo » Sun Dec 10, 2006 1:50 pm

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 !
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby makslane » Sun Dec 10, 2006 6:20 pm

In my task list
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest