Suzaku
Member
Lets suppose that I have a object that represents a lady character:
and I have this animated sprite:
I want this character object to move a little to the right until it reach the frame 4 on that animation. Then the object must stop moving because the character will start to get up, following the animation. This is just a example but I want to do a lot of similar operations like that, where I need the object to behave differently accordly to the moment of the animation sprite.
My question is specificly about how to detect those moments where the object will do different things.
So in that example, should I keep monitoring the frames to execute a movement code whenever that sprite is between the frames zero and 4...... or should I divide the sprite into 2 sub sprites to detect those moments using the animation end event? Or is there another easy way to do such things? Thank you.
and I have this animated sprite:
I want this character object to move a little to the right until it reach the frame 4 on that animation. Then the object must stop moving because the character will start to get up, following the animation. This is just a example but I want to do a lot of similar operations like that, where I need the object to behave differently accordly to the moment of the animation sprite.
My question is specificly about how to detect those moments where the object will do different things.
So in that example, should I keep monitoring the frames to execute a movement code whenever that sprite is between the frames zero and 4...... or should I divide the sprite into 2 sub sprites to detect those moments using the animation end event? Or is there another easy way to do such things? Thank you.
Attachments
-
976 bytes Views: 1
-
2.5 KB Views: 2