EVENT GAME: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
EVENT_GAME is a [[EDuke32_event_list|Game Event]]. | EVENT_GAME is a [[EDuke32_event_list|Game Event]]. | ||
This [[event]] is triggered once per tic per sprite in the game. | This [[event]] is triggered once per tic per sprite in the game. The gamevar [[THISACTOR]] refers to the ID of the actor executing the code. Thus, it takes the value of each actor in the game. | ||
All sprites are processed in the following fashion: | All sprites are processed in the following fashion: | ||
Line 10: | Line 10: | ||
EVENT_GAME is generally sufficient for coding needs but EVENT_PREGAME has some specific uses. | EVENT_GAME is generally sufficient for coding needs but EVENT_PREGAME has some specific uses. | ||
Unlike [[actor]] or [[useractor]], EVENT_GAME is triggered the same tic the sprite is loaded/spawned. | |||
[[Category:Events]] | [[Category:Events]] |
Revision as of 17:08, 21 March 2014
EVENT_GAME is a Game Event.
This event is triggered once per tic per sprite in the game. The gamevar THISACTOR refers to the ID of the actor executing the code. Thus, it takes the value of each actor in the game.
All sprites are processed in the following fashion:
- EVENT_PREGAME
- hardcoded stuff
- EVENT_GAME
EVENT_GAME is generally sufficient for coding needs but EVENT_PREGAME has some specific uses.
Unlike actor or useractor, EVENT_GAME is triggered the same tic the sprite is loaded/spawned.