Hi to all.
It's a simple problem but don't know how to resolve this.
I have an animstrip of 8 frames of a jet that make a rotation.
The frame from 0 to 4 is the left rotation,the frame from 5 to 8 is the right rotation.
My sprite is moved by joypad.
I don't know how to tell my jet that if i hit right he must roll right and when reach the endframe must stop in this position,and if i hit left he must roll left and when reach the endframe must stop.
This is the simple answer.
The complex answer....
If i want to track the current frame and when i hit left or right the sprite start roll from the position it was until he reach the end of that direction,what can i do to make this?
Actually my animstrip is made in this manner:
from left to right
^
| -> --> ---> <- <-- <---
i think one of the solution involve change the animstrip in this manner:
^
<--- <-- <- | -> --> --->
Right?
Thanks in advance.
It's a simple problem but don't know how to resolve this.
I have an animstrip of 8 frames of a jet that make a rotation.
The frame from 0 to 4 is the left rotation,the frame from 5 to 8 is the right rotation.
My sprite is moved by joypad.
I don't know how to tell my jet that if i hit right he must roll right and when reach the endframe must stop in this position,and if i hit left he must roll left and when reach the endframe must stop.
This is the simple answer.
The complex answer....
If i want to track the current frame and when i hit left or right the sprite start roll from the position it was until he reach the end of that direction,what can i do to make this?
Actually my animstrip is made in this manner:
from left to right
^
| -> --> ---> <- <-- <---
i think one of the solution involve change the animstrip in this manner:
^
<--- <-- <- | -> --> --->
Right?
Thanks in advance.