Page 1 of 1

i need to know how to make it so u can move

PostPosted: Sat Jun 14, 2008 1:51 am
by someone
how? :|

Re: i need to know how to make it so u can move

PostPosted: Sat Jun 14, 2008 4:09 am
by Fuzzy
open game editor. click help. there are many tutorials that will walk you through this and other things.

Re: i need to know how to make it so u can move

PostPosted: Sat Jun 14, 2008 5:42 am
by catacomber
Trajecto had a good tutorial here but I can't find it. Try this:

http://www.trajectorylabs.com/Walking_C ... orial.html

I think you should be posting in "General", lol. That's not really an advanced topic, but enjoy GE. : ) There's always someone who will try to help if they can.

Re: i need to know how to make it so u can move

PostPosted: Sat Jun 14, 2008 8:30 am
by DST
Two things about movement that most ppl don't know about:

if you use x+=4 instead of xvelocity+=4, then you don't have to add a keyup to stop. :)

and

Often, you can get smoother animation with less code by using "NO_CHANGE" in your AnimationChange rather than
using "FORWARD".

When in doubt....download some demos! Most of the questions i see asked are already implemented in the great demos posted in the demos section!

Re: i need to know how to make it so u can move

PostPosted: Sun Jun 15, 2008 3:02 am
by catacomber
I read somewhere that the +- movement of your sprite along the x,y axis should be in relation to the width of the sprite to make it a really smooth movement. So the amount of +- x or y movement should equal the pixel width of your sprite.

Re: i need to know how to make it so u can move

PostPosted: Mon Jun 16, 2008 4:27 am
by xr2alex99
im good with movements
i have it left/right
my animations change
perfect walls and cool speedtrails
things folow me when i run its awesome
gravity/= yvelocity = yvelocity +5; you will fall down
collison with the ground prevents permanent falling
x=x+5; or x=x-5;
key down/script editor/ moves you left or right
|=y --=x the grid

Re: i need to know how to make it so u can move

PostPosted: Mon Jun 16, 2008 6:47 pm
by DST
catacomber wrote:I read somewhere that the +- movement of your sprite along the x,y axis should be in relation to the width of the sprite to make it a really smooth movement. So the amount of +- x or y movement should equal the pixel width of your sprite.


That could be kind of choppy. Instead of being the width of your sprite, perhaps it should be a factor of your sprite.
i.e. if your sprite is 36 px, use 6. if its 64 pix, use 8.