System events

Open Game Engine 2D, Version 1.0.1

In current version, only the game, the scene and the sprite objects will have their own events.

Please note that, in our engine, there is no parameter passed to the event functions.
Developer has to use API functions to get current information in the event functions.

And a general game event flow would be like this:

Game: OnInit ->
Scene: OnInit ->
Sprite: OnInit ->
Scene: OnActive ->
Sprite: OnSceneActive ->
Scene: OnOpen ->
Scene: OnClose ->
Sprite: OnSceneDeactive ->
Scene: OnDeactive ->

For more information, please see the topics below: