Sgt. Sparky wrote:make the pre-rotated images and have them all in one animation,
make sure it is rotating starting with the player pointing right,
make it rotate all around(right to left) to the right again.
and lets say you pressed the left key(repeate enabled): animpos += 1;
and for the key down event of right(also repeat enabled):animpos += 1;
and for the draw actor event use,
- Code: Select all
if(animpos > nframes)animpos = 0;
if(animpos < 0)animpos = nframes;
Hi! I've tried this to my game to, but not i'm not getting it to work :/ .
This is what i've done:
- I've made 36 animations of my actor.
- I choose the option "Mulitple files" in the add animation area. (I made one gif animated rotation file to and tested.)
- The actor starts with the rotate at the right, and goes around to the right again.
So when i press "key up" i used the script you posted above and then the script for key down. But I don't know if i've understod it all wrong cuz it doesent rotate correctly. When i press key down, it rotates down. When i press key up, it just stops.
Plz help
// Fille