Here is my first question. I use an script like this to change the sprite of an object based on the direction it´s facing:
"if direction > 0-20 and direction < 0+20 {sprite_index=character0}"
Everything works fine, but it changes the direction suddenly. I´m working on a little "point and click" spaceship strategy game and I need the ships to change direction smoothly and at a certain speed. For example:
The ship is looking upwards (0 degrees) and I want to move it to the right (90º). I have a different sprite for every 10 degrees. How I can do an smooth animation for that change of direction at a fixed speed (faster for smaller ships and slower for bigger ships)???
Thanks a lot in advance, people!!!
Edited by Luisiroth, 28 May 2012 - 05:05 PM.











