Game Development Community

C++ equivalent of onLevelLoaded?

by Richard Skala · in iTorque 2D · 01/16/2010 (7:39 am) · 1 replies

Is there a C++ equivalent of the script function 'onLevelLoaded'? I've searched through the code, and I haven't found anything like that. I'd like to have a function like that basically confirms that all objects in the level have been created successfully and that the level has been successfully loaded.

#1
01/16/2010 (8:49 am)
no, but you could create one that you call after the console call to onLevelLoaded (or alternatively to it)

generally though this is a bit a critical thing to do as script functions run on their own pace and at fixed times, so if your code relies on things from scripts, it will potentially go ugly wrong.