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.

[Request] IPO callback, animation done trigger

2 posters

Go down

[Request] IPO callback, animation done trigger Empty [Request] IPO callback, animation done trigger

Post  yarri Sun Apr 26, 2009 12:25 pm

Hi, it would be nice to have notification from sio2IpoCurveRender() to either change the state of the IPO curve (NON_CYCLICAL_DONE?) or provide a callback when a rendering stream is completed.

This would help with an in-game "flyby" of a scene done at the beginning of gameplay, ie., a one-time event.

I'll submit code if I make any changes to the engine, but I might just handle this with an NSTimer.

--yarri

yarri

Posts : 81
Join date : 2009-04-10

Back to top Go down

[Request] IPO callback, animation done trigger Empty Re: [Request] IPO callback, animation done trigger

Post  sio2interactive Sun Apr 26, 2009 4:16 pm

Simply monitor the state of the curve and set it to constant. When the renderer reach the end of the control points the state will be set to SIO2_IPO_STOP.
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Back to top

- Similar topics

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