UnderwareDESIGN

PlayBASIC => Beginners => Topic started by: ale870 on September 14, 2006, 01:55:16 AM

Title: How to move to a specific direction?
Post by: ale870 on September 14, 2006, 01:55:16 AM
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!