News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

How to move to a specific direction?

Started by ale870, September 14, 2006, 01:55:16 AM

Previous topic - Next topic

ale870

Hi,

I was looiking for a command which let me move my hero to a specific direction.
Example: if the hero is facing the angle 45 degrees, then I could use something like:
move(spriteX, 5)

where "spriteX" is the sprite to be moved, and "5" is its speed. In this case it will move following the direction of 45 degrees.

Thank you!
--Alessandro