animation completed callback?

View previous topic View next topic Go down

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....

Regards,

Corpse.

corpseLike

Posts : 1
Join date : 2009-10-25

View user profile

Back to top Go down

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:

Code:
         // 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 );

Cheers

--Franky

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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