Reply to Re: Movin' Sprite
If you don't have an account, just leave the password field blank.
The most common commands to do that are move(); (moves the sprite but continues onward the script) and move_stop(); (doesn't continue the script until the sprite has arrived at the coordinate he was told to go at)
move_stop(1, 6, 310, 1); would move Dink in the middle of the screen. (taken he's on the left side of the screen) The first number determines what sprite you want to move, second number stands for the direction you want to move it in (numpad), third number is the x- or y-coordinate you want to move the sprite to and the fourth number determines if the sprite will be stopped by any hard obstacles or not (the value is either 1 or 0).
On horizontal and diagonal movement the coordinate is X and on vertical it's Y. North(8) and west(4) borders are at X0 and Y0 and east(6) and south(2) borders are at X620 and Y400
move_stop(1, 6, 310, 1); would move Dink in the middle of the screen. (taken he's on the left side of the screen) The first number determines what sprite you want to move, second number stands for the direction you want to move it in (numpad), third number is the x- or y-coordinate you want to move the sprite to and the fourth number determines if the sprite will be stopped by any hard obstacles or not (the value is either 1 or 0).
On horizontal and diagonal movement the coordinate is X and on vertical it's Y. North(8) and west(4) borders are at X0 and Y0 and east(6) and south(2) borders are at X620 and Y400