The Dink Network

Y cordinate

June 7th 2003, 06:20 PM
pillbug.gif
On the move_stop command, it only covers the y cordinate, what if Dink is already on a y cordinate and you just want to make him move left on it?
June 7th 2003, 07:40 PM
fairy.gif
The command is like this:
move_stop( int sprite, int direction, int destination, hardness);, so here's how it works. If you want the sprite to move left, you'd put 4 for int direction. Then Destination is based on the direction; for 4 and 6, you use X coords; for 8 and 2, y coords. So if you wanted Dink to move left from, say, x = 300 to x = 100, you'd do this:
move_stop(1, 4, 100, 1);
June 7th 2003, 07:43 PM
pillbug.gif
Thank You!
June 8th 2003, 12:32 PM
spike.gif
And for directions 1, 3, 7 and 9, you use only x.