Game Development Community

Playing Sequences Back To Back

by Greg G · in Verve · 06/03/2010 (1:20 pm) · 2 replies

Does verve come with any type of system for playing several sequences one after the other, and if not does anyone have a recommended way to go about doing this?

#1
06/03/2010 (2:19 pm)
The controller has a few callbacks you could rely on here. VController::onStop is one. You could just play another sequence when one stops from that callback.
#2
06/04/2010 (10:52 am)
Yeah I saw that and tried that out first. The problem is it gets called before the previous event is actually stopped so it causes a crash sometimes. I added another callback that happens after postEvent( k_EventStop ); in void VController::stop( const bool &pReset ) called onStopped and that works.

Just in case anyone else ends up needing to do this as well.