Template:Event Nav: Difference between revisions
Jump to navigation
Jump to search
m (Added a link to the page on alarm events) |
No edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="column-count:3;-moz-column-count:3; -webkit-column-count:3; text-align:left" > | |||
{{event|event_create.png|Create|Happen only once when an object is first created.}} | |||
{{event|event_destroy.png|Destroy|Happen when objects are destroyed.}} | |||
{{event|event_alarm.png|[[Alarm event|Alarm]]|Alarm events are used to sequence things to the number of updates or 'steps' the game has processed.}} | |||
{{event|event_step.png|[[Step]]|Triggered at regular intervals according to the [[room_speed]] and allow you to update objects before they are rendered. }} | |||
{{event|event_collision.png|[[Collision]]|Occur when objects come in contact with each other.}} | |||
{{event|event_collision.png|Physics|Similar to collision events but specific to the Box2D physics engine.}} | |||
{{event|event_keyboard.png|Keyboard|Handle when a keyboard button is pressed and then held.}} | |||
{{event|event_alarm.png| | {{event|event_key_press.png|Key Press|Handle when keyboard keys are pressed.}} | ||
{{event|event_step.png| | {{event|event_key_release.png|Key Release|Handle when keyboard keys are released.}} | ||
{{event|event_mouse.png|Mouse|Handle mouse input including button clicks.}} | |||
{{event|event_joystick.png|Joystick|Handle joystick input for a variety of joystick devices.}} | |||
{{event|event_gamepad.png|Gamepad|Handle gamepad input using a more streamlined interface.}} | |||
{{event|Paintbrush.png|Draw|Occur after the end step event and are for when you are ready to draw objects to the screen.}} | |||
{{event|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.}} | |||
{{event|event_other.png|Other|Events not covered in other categories, such as those defined by the user.}} | |||
{{event|event_other.png|Room|Are for when things change about the current room, such as it restarts or ends.}} | |||
{{event|event_other.png|Game|Are global to the entire game, such as just before the window closes and the game ends.}} | |||
{{event|event_collision.png| | </div> | ||
{{event| | |||
{{event|event_keyboard.png| | |||
{{event|event_key_press.png| | |||
{{event|event_key_release.png| | |||
{{event|event_mouse.png| | |||
{{event|event_joystick.png| | |||
{{event|event_gamepad.png| | |||
{{event|Paintbrush.png| | |||
{{event|Paintbrush.png| | |||
{{event|event_other.png| | |||
{{event| | |||
{{event| | |||
Latest revision as of 08:05, 10 September 2017
Create | |
---|---|
Happen only once when an object is first created. |
Destroy | |
---|---|
Happen when objects are destroyed. |
Alarm | |
---|---|
Alarm events are used to sequence things to the number of updates or 'steps' the game has processed. |
Step | |
---|---|
Triggered at regular intervals according to the room_speed and allow you to update objects before they are rendered. |
Collision | |
---|---|
Occur when objects come in contact with each other. |
Physics | |
---|---|
Similar to collision events but specific to the Box2D physics engine. |
Keyboard | |
---|---|
Handle when a keyboard button is pressed and then held. |
Key Press | |
---|---|
Handle when keyboard keys are pressed. |
Key Release | |
---|---|
Handle when keyboard keys are released. |
Mouse | |
---|---|
Handle mouse input including button clicks. |
Joystick | |
---|---|
Handle joystick input for a variety of joystick devices. |
Gamepad | |
---|---|
Handle gamepad input using a more streamlined interface. |
Draw | |
---|---|
Occur after the end step event and are for when you are ready to draw objects to the screen. |
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 | |
---|---|
Events not covered in other categories, such as those defined by the user. |
Room | |
---|---|
Are for when things change about the current room, such as it restarts or ends. |
Game | |
---|---|
Are global to the entire game, such as just before the window closes and the game ends. |