The Image Editor is where you can create your own sprites or edit those you have imported or created previously. If you have used any other image tools then this should be familiar to you but there are a few things to note when using the GameMaker Image Editor which may not be immediately apparent:
Those are just some of the more advanced features that the Image Editor offers. To find out the full feature range, please read the items below detailing the functions of every part of the editor:
This part of the window shows the frames in the order that they will be animated in. You can click the button to the left to add further frames - or use the Image Menu - and you can also click and drag any of the frames to change their position along the timeline. In the top left of the Frame View you can switch on Onion Skinning
, which means that in a single frame of any sprite animation, you can choose to see any of the preceding or succeeding frames as a semi-transparent layer under the image frame you are currently editing. The great thing about this is that each frame is drawn slightly lighter than the last so you can see how the animation has been progressing from frame to frame while drawing the next one.
Enabling this will show some extra controls over the frames which you can click and drag to set the number of preceding frames to show as well as the number of following frames.
You can set certain properties for onion-skinning from the View conext menu, which is explained further down this page.
Beneath the Onion Skin button, you have the Loop Control button used to set whether the sprite loops (goes back to frame 1 when the last frame is reached) or ping-pongs (goes backwards through the frames when the last frame is reached). The Play button
at the bottom is for starting/stopping the preview of the animation.
You can click on any frame to select it for editing, and a selected frame will have a Delete button at the top corner which you can click to remove the frame from the sprite. You can also click
/
+
on multiple frames to select them together, in which case clicking the Delete button will delete all the selected frames. Finally, you can use the standard keyboard shortcuts for Cut, Copy and Paste to edit selected frames:
/
+ "X",
/
+ "C", and
/
+ "V".
Frame InformationFrame Information
This bar contains the Frame Information. Here you can set the speed at which the animation frames should be played back using the input box on the left. The frame speed can either be based on "Frames per second", or "Frames per game frame". The total number of frames available are shown to the right along with the current frame that has been selected, and you can collapse this bar (hide it) by clicking on the icon to the left. You can set this to always start open or always start closed from the Image Editor Preferences.
NOTE The value used here for the animation speed will also set the way the sprite is animated when used in a game, either as a sprite asset on a layer or as a sprite assigned to an instance, although you can modify this at runtime using the appropriate functions and variables.
Canvas ControlsCanvas Controls
The canvas controls deal with various aspects of how the main draw canvas and its contents are displayed. The options are:
This is the main editing window for your images. Here you can apply any of the tools on the right to paint on the currently selected layer. You can paint with either the left or the right
mouse button (and assign a colour to each from the colour picker) and use any of the brushes defined from the top right of the editor. You can also use
/
and the Mouse Wheel
to zoom in or out, and pressing
/
+
will set the canvas to be 1:1 with the image (or you can use the Canvas Controls as explained above). Note too that you can pan around the canvas using the middle mouse button
or
+
.
This small bar at the bottom shows the different values for the mouse position and width and height of the selection tools in the editor.
Here you can select the brush to paint with. By default you have a selection of different sized square and round brushes to use, but you can easily create your own brush by painting on the image layer, and then selecting the part you wish to use for the new brush and using /
+ "C" to copy it. The copied section will then be added to your brushes and you can paint with it as you would any other brush, and this includes using the different paint tools available like drawing a line.
If you want to remove a brush from the list, simply click on it and press the key and it will be removed.
NOTE The default blending colour for the new brush will be white, but if you change the colour with the colour picker and paint using the brush, it will be blended with this new colour.
You can also paste externally from your clipboard ( /
+ "V") to create a new brush, which can be changed in the Image Editor Preferences.
To create a new brush from the selection regardless of the setting of Image Selection Copy/Paste, use + "B". This shortcut will also work if you have the preference set to Paste as Layer.
NOTE Brushes are not retained between sessions, closing your project will remove any brushes that you have created.
The top of this section has a number or predefined colour swatches that you can choose from, and they can be assigned to the left and right
mouse buttons respectively by clicking on them with either button (you can also swap the colours between each button by clicking the arrow icon in beside the swatches). The colours selected will be shown below as swatches beside the image of the mouse, and you can then click these to open the Colour Picker window:
From this window you can define the colour using any of the available sliders and gadgets, or you can input values directly for the ARGB values or HSV values.
If you hold CTRL/CMD and click on any of the default colour swatches, it will bring up the colour picker tool and allow you to edit the default palette for the sprite. Clicking "OK" in the colour picker in this case will set the palette to the new colour and save it along with the sprite asset being edited.
These colour palettes can then be swapped and applied to different sprites using the colour palette Options menu:
The single line of colours below the palette shows your colour history, with your most recently selected colour being on the very left. This section is not copied when using the "Import colours" or "Copy colours" option, as that only applies to the main palette above.
So, you can create a custom colour palette in a sprite image and then use that to set the palette for any other sprite in the Asset Browser, or you can open a sprite image and import the colour palette from any other sprite in the Asset Browser. This sprite palette feature is covered in more detail in the following tech blog:
Below we list the tools that are available by default with GameMaker - note that all tools can be used with the left and right
mouse button, and most of them have keyboard shortcuts associated with them (the important ones are listed here along with the tool, but for a full list please see the page on Shortcuts). Most tools will also have extra options that will be visible at the top of the image editor as shown below:
![]() | Pencil | This is the pencil tool. It uses the selected brush to paint in the selected colour for the mouse button, and you can set the size from the top bar of the image editor as well as enable/disable smoothing (interpolation). Note that you can also resize and scale any brush by holding down ![]() ![]() |
![]() | Eraser | This is the eraser tool. It uses the selected brush to erase an area on click from either mouse button. Selecting this will also add extra tools to the top bar of the editor to permit you to scale the brush or enable/disable smoothing (linear interpolation). |
![]() | Paint / Fill | This is the paint bucket (or fill) tool. This will fill in an area of the image based on the chosen alpha tolerance setting, which you can change using the slider shown in the top bar of the editor. |
![]() | Colour Remove | This is the colour remove tool. When you select it, you can then click ![]() ![]() |
![]() | Colour Replace | This is the colour replace tool. When you select it, you can then click ![]() ![]() |
![]() | Line | This tool will draw a line between two points. Click once with either button to create the first point and then click again elsewhere to create another point and join them. The line will be drawn using the selected brush to create the outline, and you can edit some of the brush properties using the top bar of the editor (size, linear interpolation, etc...). |
![]() | Rectangle | This tool will draw either a filled or an outlined rectangle. If you click in the top left of the icon, it will be outlined, while clicking the bottom right will be filled and if you require both then you can select that option from the top bar of the image editor (or use ![]() ![]() ![]() |
![]() | Ellipse | This tool will draw either a filled or an outlined ellipse. If you click in the top left of the icon, it will be outlined, while clicking the bottom right it will be filled and if you require both then you can select that option from the top bar of the image editor (or use ![]() ![]() ![]() |
![]() | Polygon | This tool will draw either a filled or an outlined polygon. If you click in the top left of the icon, it will be outlined, while clicking the bottom right will be filled and if you require both then you can select that option from the top bar of the image editor (or use ![]() ![]() ![]() ![]() ![]() |
![]() | Spline | This is the spline tool. It uses the selected brush to create a spline. You click and hold either mouse button to set a point and then drag the mouse to generate the spline, releasing the mouse and repeating to add further points and curves. The spline will be drawn using the selected brush, which can be edited using the top bar of the editor to set size and smoothing. The top bar also has a setting for Iterations which will define how smooth the resulting spline is (lower values will be rougher, higher smoother, and the default value is 10). |
![]() | Text | This is the text input tool. It creates a new text layer where you can type anything you need. You can set the font to use as well as the formatting from the top bar of the image editor. |
![]() | Eye Dropper | The eye-dropper tool permits you to sample a colour from the image currently being edited. |
![]() | Rectangle Selection | With this tool you can generate a rectangular selection. You can cancel a selection from the Image menu or pressing ![]() |
![]() | Paint Selection | With this tool you can "paint" a selected area using any of the brushes, including custom brushes. All the same keyboard shortcuts apply as for the Pencil tool. You can cancel a selection from the Image menu or pressing ![]() |
![]() | Magic Wand | The magic wand selection tool will select areas of the same colour based on the tolerance value set from the top bar of the editor. If you tick "Colour only" then alpha value will not be taken into consideration. You can cancel a selection from the Image menu or pressing ![]() |
![]() | Rotate | This is the rotate tool. If you have an area selected using one of the Selection tools, then clicking this will permit you to rotate the selected area by an arbitrary amount from 0° to 360°. If you do not have an area of the image selected then this will permit you to rotate the current brush. To rotate, simply hold down the left mouse button ![]() ![]() |
![]() | Mirror | This is the mirror tool. Selecting this will mirror the current brush along the vertical axis. This option does not create a new brush and will only affect how the current brush is drawn. |
![]() | Flip | This is the flip tool. Selecting this will mirror the current brush along the horizontal axis. This option does not create a new brush and will only affect how the current brush is drawn. |
![]() | Pan | This is the pan tool. When you select this, you can then click ![]() |
You can create layers in the image editor for different parts of your image, and these layers can be manipulated and drawn to using the various brushes and tools. To create a new layer, simply click the icon, and to remove it again the
icon. Layers can also be ordered by clicking
on a layer and then dragging the layer up or down to the position you require, and you can further organise the layers by creating folders using the
button and then dragging layers into them.
If you double click on a layer (or use
and select Edit Layer Properties) you'll get access to the Layer Properties window:
Here you can name the layer as well as set the blend mode (the way that it should be "mixed" with the layers beneath), choosing from normal, additive, subtractive or multiply blends. Finally you can set the opacity (transparency) of the layer with a slider, but note that this is cumulative with the actual alpha value of individual pixels - for example, if you have pixels that are 50% opaque and set the layer opacity to 50%, the final pixels will be drawn at 25% opacity.
You can also paste from your clipboard ( /
+ "V") to create a new layer, which can be enabled/disabled in the Image Editor Preferences (see "Image Selection Copy/Paste").
Apart from those tools within the Image Editor itself, there are also a number of extra tools available to you from the Menu Bar at the top of the IDE:
These menus are explained in the sections below:
The Image menu has the following options (some of which may or may not be available depending on the currrent editor focus):
The View menu has the following options:
The Effects menu is where you can add your own custom effects plugins, and has the following effects by default: