Reply to Re: Making sprites walk
If you don't have an account, just leave the password field blank.
OMG prophet! I'm sure that's NOT what he was talking about!
He probably meant how to make a sprite move over the screen.
it's done like this :
move_stop(&current_sprite, 6, 400, 1);
You can substitute move_stop with move but that will NOT pause the script and wait until teh sprite has reached its destination.
6 is an example of a direction. You can change this to the direction you want your sprite to move in.
The next parameter determines tyhe destination coordinate. WHether its supposed to be an x-coordinate or a y-coordinate depends on the direction.
The 1 stands for "going through hardness". If it's 0 the sprite will stop when he touches hardness.
Hope this helps.
He probably meant how to make a sprite move over the screen.
it's done like this :
move_stop(&current_sprite, 6, 400, 1);
You can substitute move_stop with move but that will NOT pause the script and wait until teh sprite has reached its destination.
6 is an example of a direction. You can change this to the direction you want your sprite to move in.
The next parameter determines tyhe destination coordinate. WHether its supposed to be an x-coordinate or a y-coordinate depends on the direction.
The 1 stands for "going through hardness". If it's 0 the sprite will stop when he touches hardness.
Hope this helps.