Draw Actions in GameMaker: Studio
GameMaker: Studio’s Draw Actions tab includes Drawing Actions, Settings Actions, and Other Actions, as shown in this figure. Here is how these actions can help you make your game.
Drawing actions on the draw tab
The Drawing Actions, shown in the next figure, are exactly that: They provide a means for you to draw.
Draw Self: This is the same Action as the default draw that GameMaker uses. If you were to write the code instead of using a drag-and-drop Action, it would look like this:
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
Draw Sprite, Draw Background, Draw Text, and so on: Use these Actions to draw scaled text, rectangles, horizontal and vertical gradients, ellipses, and gradient ellipses. You can also draw lines and arrows with these Actions.Drawing Actions from the Draw tab.
Settings actions on the draw tab
GameMaker includes Actions for setting color (or, colour, if you prefer), fonts, and going full-screen, as shown in the next figure.
Set Color: This Action enables you to choose a color for every Instance drawn after this Action is triggered.
Set Font: The default font for GameMaker games is Arial, 12 point, but if you add a new font to the Resource tree, you can specify for GameMaker to use that font using this Action.
Set Full Screen: With this Action, you can enable the player to toggle going full-screen and back, which you can use as a player-configured option in a game.Settings Actions from the Draw tab.
Other actions on the draw tab
The Other Actions on the Draw tab, shown in this figure, are
Take Snapshot: This Action takes a screen capture of the game and stores it in a PNG file with a filename of your choosing. By default, GameMaker saves the screen capture in the %localappdata% folder of the game.
Create Effect: Use this Action to create many effects in a simple and efficient manner.Other Actions from the Draw tab.