GP2X lineto putpixel not working

Non-platform specific questions.

GP2X lineto putpixel not working

Postby pixelpoop » Sun Mar 18, 2007 5:06 pm

Does Game Editor not support the lineto and putpixel commands on the GP2X? I can't get either to work.
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Postby UltimatHedgehog » Sun Mar 18, 2007 5:15 pm

what are those no one ever said those work they dont have anything to do with ge
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby pixelpoop » Sun Mar 18, 2007 5:35 pm

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)
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Postby UltimatHedgehog » Sun Mar 18, 2007 9:04 pm

i dont know i was saying random things :lol: i didnt know what to do about it
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby Game A Gogo » Mon Mar 19, 2007 12:43 am

are you using this on a canvas actor??
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby pixelpoop » Mon Mar 19, 2007 2:06 am

yes I use a canvas actor. lines draw fine under windows but it won't work on the GP2X.
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score

Postby makslane » Mon Mar 19, 2007 1:03 pm

Can you send me the game?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

emailed it

Postby pixelpoop » Tue Mar 20, 2007 1:14 am

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);
User avatar
pixelpoop
 
Posts: 276
Joined: Tue Aug 29, 2006 9:32 pm
Score: 28 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest