I Don't Know How To...

Game Editor comments and discussion.

I Don't Know How To...

Postby DoubleD » Tue Jul 14, 2009 9:17 pm

I'm trying to make a sonic game, but I don't know how to get the characters to go through the loop. Can I get some help? Please.
DoubleD
 
Posts: 1
Joined: Thu Jun 11, 2009 2:39 am
Score: 0 Give a positive score

Re: I Don't Know How To...

Postby DarkParadox » Wed Jul 15, 2009 12:20 pm

well, you could have 36,90, or 360 sprites of sonic rotating (first sprite of his head facing right and he must rotate counter clockwise), and find ferals stickto(); function.
Basicly, activate stickto when you get to the loop, and use this code to choose the rotation sprite:
Code: Select all
animpos=direction(xprevious,yprevious,x,y);//for 360

Code: Select all
angle=direction(xprevious,yprevious,x,y);//for 90
animpos=angle/4;

Code: Select all
angle=direction(xprevious,yprevious,x,y);//for 36
animpos=angle/10;
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest