Skip to content
We're expanding our documentation. Not all guides are available yet. ๐Ÿ› ๏ธ
Guides
๐Ÿ–ผ๏ธ Tiled Sprite

Tiled Sprite Object in 3Engine

This section details the Tiled Sprite object in 3Engine, a powerful tool for creating repeating textures in your games.

What is a Tiled Sprite Object?

A Tiled Sprite object allows you to utilize repeating images within your game. Unlike regular sprites that stretch upon size modification, Tiled Sprites replicate the image to fill the entire object area.

This functionality makes them ideal for creating:

  • Platforms in platformers
  • Health and status bars
  • Repeating walls and backgrounds
  • And more!

Adding a Tiled Sprite Object

There are two ways to add a Tiled Sprite object to your scene:

  1. Create a New Object: Click the "Add a new object" button found at the bottom of the Objects list. Select "Tiled Sprite" from the window that appears.
  2. Use the Asset Store: Search the Asset Store for pre-made Tiled Sprite objects you can directly import into your scene. Adding a Tiled Sprite Object

Accessing Object Properties

Once you have a Tiled Sprite object:

  1. Right-click on the object and select "Edit object" from the pop-up menu.
  2. Alternatively, double-click the object itself.

This action opens the object's properties window for customization.

Adding an Image

Within the object's properties window:

  1. Click on the text field labeled "Select an image."
  2. A drop-down menu will appear, allowing you to choose the image source. Select the desired location and choose the image you want to use.
  3. The chosen image will be displayed in the preview window on the left side. Adding an Image

Adjusting Default Size

The object's default size can be modified using the "Default width" and "Default height" values within the properties window. This defines the object's in-game appearance size (in pixels) when placed in the scene. This doesn't alter the original image but rather defines the object's initial size. Ensure these values match the image's original width and height in pixels. Adjusting Default Size

Scaling the Object

The Tiled Sprite's size determines how much of the image is visible in your game. If the image is larger than the object's scaled size, only a portion will be shown. Conversely, if the object is scaled larger than the image, the image will repeat to fill the space.

Unique Tiled Sprite Actions

While events can be used to manipulate the scale and position of Tiled Sprites, they also possess unique actions like offsets. These offsets allow players to scroll through the Tiled Sprite image without affecting its position. This functionality is commonly used for creating scrolling backgrounds and similar effects.

Tutorial

  • Youtube Video soon!
  • Example soon!