GP2X lineto putpixel not working
Posted:
Sun Mar 18, 2007 5:06 pm
by pixelpoop
Does Game Editor not support the lineto and putpixel commands on the GP2X? I can't get either to work.
Posted:
Sun Mar 18, 2007 5:15 pm
by UltimatHedgehog
what are those no one ever said those work they dont have anything to do with ge
Posted:
Sun Mar 18, 2007 5:35 pm
by pixelpoop
if they aren't a part of ge then why do I find this in the ge documentation.
lineto: Draw a line on Event Actor to (x, y) coordinates using actual pen
void lineto(int x, int y)
Script Editor Syntax:
setpen(255,255,255,0,3);
lineto (50,50);
Example:
if (draw == 1)
{
screen_to_actor(&xmouse, &ymouse); //mouse coordinates from screen to actor coordinates
lineto(xmouse, ymouse); //draw a line to the mouse coordinates
}
putpixel: Draw a single pixel on Event Actor in (x, y) coordinates using actual pen.
void putpixel(int x, int y)
Posted:
Sun Mar 18, 2007 9:04 pm
by UltimatHedgehog
i dont know i was saying random things
i didnt know what to do about it
Posted:
Mon Mar 19, 2007 12:43 am
by Game A Gogo
are you using this on a canvas actor??
Posted:
Mon Mar 19, 2007 2:06 am
by pixelpoop
yes I use a canvas actor. lines draw fine under windows but it won't work on the GP2X.
Posted:
Mon Mar 19, 2007 1:03 pm
by makslane
Can you send me the game?
emailed it
Posted:
Tue Mar 20, 2007 1:14 am
by pixelpoop
Thanks for taking a look makslane. I just emailed you a file that uses the functions. All it is, is when you press anykey this code executes:
- Code: Select all
setpen(255, 0, 0, 0, 1);
moveto(0, 0);
lineto(150,100);