In current version, the scene object has 20 events.
This event will be fired when a scene is created.
This event will happen in every turn of the game cycle.
This event will happen when players press any keyboard key.
We may use the API function OGE_GetKey()
to get the key pressed.
This event will happen when players press any keyboard key and release
it.
We may use the API function OGE_GetKey()
to get the key released.
This event will happen when the scene is activated.
This event will happen when the scene is deactivated.
This event will happen when the scene is activated and the scene's fade-in effect is finished.
This event will happen before the scene's fade-out effect starts.
This event will happen when players press any mouse key.
We may use the API function OGE_GetMouseX(), OGE_GetMouseY(), OGE_IsMouseLeftDown(), OGE_IsMouseRightDown()
to get the event info.
This event will happen when players press any mouse key and release
it.
We may use the API function OGE_GetMouseX(), OGE_GetMouseY(), OGE_IsMouseLeftUp(), OGE_IsMouseRightUp()
to get the event info.
This event will happen when the mouse is moving over the scene and it is not catched by any sprite in the scene.
We may use the API function OGE_GetMouseX(), OGE_GetMouseY()
to get the event info.
This event will happen when all non-window sprites are drawn.
This event will happen when all window sprites are drawn.
This event will happen when the scene is drawing.
This event will happen when the scene's timer time is up.
This event will happen when a server is connected by a client.
OnReceiveFromRemoteClient |
This event will happen when a server receives something from a client.
This event will happen when a server is losing a client.
This event will happen when a client is losing a server.
OnReceiveFromRemoteServer |
This event will happen when a client receives something from a server.