animation completed callback?

Go down

animation completed callback? Empty animation completed callback?

Post  corpseLike on Sun Oct 25, 2009 3:24 am

Hi all,

I need to know when an animation has finished playing but alas I cannot find any way of determining when an action is finished; is there a way to provide a callback on the SIO2action or another object?

Please help....




Posts : 1
Join date : 2009-10-25

Back to top Go down

animation completed callback? Empty Re: animation completed callback?

Post  Francescu on Sun Oct 25, 2009 4:07 am

Check tutorial15 for an example of action completion callback.

You can for instance set a callback on the last frame of an action:

         // Set up a callback function that will be executed
         // everytime the frame #10 of the kick action will
         // be refreshed.
         sio2FrameSetCallback( zombie->_SIO2objectanimation->_SIO2action->_SIO2frame[ 10 ], reset_box );




Posts : 136
Join date : 2009-03-18

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum