Welcome to Gaia! ::

Reply The Game Maker Guild of Gaia
move objects

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

xdragonaughtx
Captain

PostPosted: Sun Jan 06, 2008 8:36 pm


how do i get my objects to move when i press the arrow key ande stop when i release it

*I messed with the friction but that doesnt work
PostPosted: Sun Jan 06, 2008 11:40 pm


Put a "Move (either Fixed or Free)" with speed x in a Key Press event... then put another "Move (either Fixed or Free)" with speed 0 in a Key Release event (for the same key obviosly)... That's one way of doing it...

Frozen_wolf
Vice Captain


xdragonaughtx
Captain

PostPosted: Mon Jan 07, 2008 1:10 pm


k thanks dudes
PostPosted: Mon Aug 04, 2008 5:43 pm


My favorite way is to have a jump to pos. (a small amount in x/y direction.) in a keyboard event (not key press.)

Using a move action with a stop moving at key release requires more events, and you have to do even more programming to do diagonal movement, and, the keys seem to "stick."

Not so with a jump to pos.

Oh, and make sure it's relative

Gonefromhere54g65

Reply
The Game Maker Guild of Gaia

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum