Skip to content

Sprite2D

The 2D tool lets you add and edit sprites on the map. Select it to show its controls in the toolbar and the sprite grid in the right-hand panel.

Toolbar

2D sprite toolbar

Eraser

Erases sprites in the target area.

Selection

Selects a sprite already placed on the map. A frame appears around the selected sprite. Click and drag the frame to move the sprite along the surface it is on.

Press Delete to remove the selected sprite.

To add a sprite, select it in the grid, then click + in the toolbar. Click different spots on the map to place multiple copies of the same sprite. Each copy is automatically placed at ground level.

Sprite grid

The grid shows the available sprites, grouped by type. Select a tag to show sprites of that type. Then select a sprite in the grid to see its image in the preview panel next to the grid.

Sprite grid with filters and preview panel

Click + in the grid to import your own sprite. The import panel shows the imported image and lets you configure the sprite.

Warning

The engine requires the image width and height to each be a multiple of 16 pixels. For example, an image that is 16 × 32 pixels meets this requirement.

sprite settings panel with a preview of the imported image and its settings

Sprite height

To adjust a sprite’s height above the ground, select it on the map. Use Page Up and Page Down or the two arrows below the preview.

Up arrow

Raises the selected sprite. You can also press Page Up.

Down arrow

Lowers the selected sprite. You can also press Page Down.

Sprite image

Export

Exports the image shown in the preview so you can edit it.

Tint

Changes the hue of the image’s colors.

Lightness

Adjusts the intensity of the image’s colors.

Saturation

Adjusts how vivid the image’s colors are.

Note

Color settings change the shared image. All sprites on the map that use this image update at the same time.

Import panel

Dimension

Shows the automatically calculated sprite size. For an animated sprite, the sprite height is the height of the image file. The sprite width is the image width divided by the number of frames set in Step.

Luminance

This setting accepts 0 and 1. At 0, the sprite responds to the map’s lighting. At 1, very bright pixels retain their color. Dark pixels are still affected by the lighting. This lets parts of the sprite appear lit at night.

Flat

At 0, the sprite stands upright. At 1, it lies flat on the ground.

Step

Sets the number of frames in the sprite. The default is 1 for a static sprite. For an animated sprite, arrange all frames side by side in a single row in the image file, then enter the frame count.

Tags

Assigns a tag to the imported sprite so you can find it using the grid filters.

Tip

Reuse an existing tag to limit the number of filters in the grid.

Duration

Sets the total duration of the animation. This setting is useful when the sprite contains multiple frames.

Add New Image

Adds the configured sprite to the sprite grid.