Template:Event Nav

From ENIGMA
Revision as of 07:23, 9 September 2017 by RobertBColton (talk | contribs)
Jump to navigation Jump to search

Timing

Event alarm.png Alarm
Alarm events are used to sequence things to the number of updates or 'steps' the game has processed.
Event step.png Step
Are for determining what happens each time the game updates.

Movement

Event collision.png Collision
Collision events occur when objects come in contact with each other.
Event collision.png Physics
Are when events trigger in the Box2D physics engine.

Input

Event keyboard.png Keyboard
Are for handling keyboard input.
Event key press.png Key Press
For handling when keyboard keys are pressed.
Event key release.png Key Release
For handling when keyboard keys are released.
Event mouse.png Mouse
Are for handling mouse input.
Event joystick.png Joystick
Are for handling joystick input.
Event gamepad.png Gamepad
Are for handling controller/gamepad input.

Graphics

Paintbrush.png Draw
Occur after the end step event and are for when you are ready to draw objects to the screen.
Paintbrush.png Draw GUI
Is for drawing things on a layer on top of everything else rendered, basically buttons and things. The event is called after all regular draw events occur and performs depth sorting on the objects and resets the projection to orthographic ignoring scaling and other view transformations.

Other

Event other.png Other
Events not covered in other categories, such as those defined by the user.
Event other.png Room
Are for when things happen to the room, such as it restarts or ends.
Event other.png Game
Event create.png Create
Happen only once when an object is first created.
Event destroy.png Destroy
Happen when objects are destroyed.