FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

animation completed callback?

2 posters

Go down

animation completed callback? Empty animation completed callback?

Post  corpseLike 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

Back to top Go down

animation completed callback? Empty Re: animation completed callback?

Post  Francescu 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

Back to top Go down

Back to top

- Similar topics

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