GameObjects have certain properties that can be registered for callbacks, such as input, alarms, and collisions.
More...
|
| Callbacks |
| SceneEntry, SceneExit, Update, Draw.
|
|
| Registration |
| The inherited callbacks must be registered for.
|
|
GameObjects have certain properties that can be registered for callbacks, such as input, alarms, and collisions.
◆ SubmitEntry()
errcode GameObject::SubmitEntry |
( |
| ) |
|
Submit entry to the scene.
- Author
- Jack Campbell
- Date
- 3/5/2017
- Call this method when you want to tell the game that a deactivated object should be activated. Then SceneEntry() callback will soon follow.
deadObject->SubmitEntry();
- Returns
- An errcode.
◆ SubmitExit()
Submit exit to the scene.
- Author
- Jack Campbell
- Date
- 3/5/2017
- When you want to kill an object, call this. Similar to a C++ destructor but Flim will recycle the object. Useful for factories, and calls the SceneExit callback
objectToDie->SubmitExit();
- Returns
- An errcode.