The Dink Network

Reply to Re: Making sprites walk

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 2nd 2002, 09:51 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
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.