Game Development Reference
In-Depth Information
The draw event
Much like the step event, the draw event also runs every step of the game. The draw event
is used to draw things to the game screen. This can be text, shapes, sprites, backgrounds,
and more. Any time we want to draw something on the screen, the draw event is going to
be used. This excludes sprites in most cases as GameMaker automatically draws sprites to
the screen unless the draw event is being used in that object. If the draw event is in use,
GameMaker allows the user full control over drawing and disables the automatic drawing
of the instances sprite. The sprite must be manually drawn by the programmer.
There are also events for key presses, key releases, animation ends, rooms starting, colli-
sions, and more. Events are the most basic building block of an object in GameMaker.
To see a complete list of all the available events in GameMaker, take a look at the online
help file at http://docs.yoyogames.com/source/dadiospice/000_using%20gamemaker/
events/index.html .
Search WWH ::




Custom Search