Prowler Productions
  Dink Smallwood Forum
  Moving diagnal?

Post New Topic  
profile | register | faq

Author Topic:   Moving diagnal?
FF4LIFE posted 07-21- 11:10 AM CT (US)   Click Here to See the Profile for FF4LIFE   Click Here to Email FF4LIFE  
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)     Click Here to See the Profile for Gerben  Click Here to Email Gerben     
move_stop(1, 2, 212,1 );
sp_dir(1,6);
Gerben posted 07-24- 01:21 AM CT (US)     Click Here to See the Profile for Gerben  Click Here to Email Gerben     
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)     Click Here to See the Profile for Nexis  Click Here to Email Nexis     
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)     Click Here to See the Profile for FF4LIFE  Click Here to Email FF4LIFE     
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.

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.