This is only theory. Eventually I will do a test to see if this is viable. Meanwhile, experience of other users of the engine is very welcome.
The theory: as actions doesn’t have a pause/resume interface, one way of achieve this if you ever need such functionality, may be:
track the time elapsed since an action was ran, or get the time elapsed using action’s interface (
ActionInterval::getElapsed()looks promising). Then, when resuming, create a new action with exact the same configuration and call
Or maintain a reference to a running action, through a RefPtr, so when you call
some_node->stopActionyou can re run the action from where it was interrupted before (I’m about to test if actions remember its elapsed time after stopped, or if they rewind).