Author
|
Topic: Moving diagnal?
|
FF4LIFE |
posted 07-21- 11:10 AM CT (US)
Is it possible to move sprite diagnol using the move(¤t_sprite) commmand? If so, how, because I can't.
|
Gerben
|
posted 07-24- 01:17 AM CT (US)
move_stop(1, 2, 212,1 ); sp_dir(1,6); |
Gerben
|
posted 07-24- 01:21 AM CT (US)
Woops, I pressed enter too soon. Ignore the last message. It is definitely possible to move your sprites into diagonals. You probably know that the second number resembles the direction on the keypad. You've probably got a problem with where you want the sprite to move to. I'm pretty sure the third number on a diagonal move is the x coordinate where you want your sprite to move to, could be the y coord. though, just try it out. Here's an example to make Dink move to the South West:move_stop(1, 1, 212,1 ); sp_dir(1,6); |
Nexis
|
posted 07-25- 03:03 AM CT (US)
yeah, it's the x coord that it moves to. And the sp_dir() isn't necessary for moving diagonal just in case its not clear. |
FF4LIFE
|
posted 08-12- 09:37 PM CT (US)
Cool, thaks for the help. I'll try it, and come complain if it doesn't work.Sorry for the lack of response i've been gone camping for 3 weeks. |