Tile/Repeat a Sprite texture

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JayH


I was wondering if there is a way to scale a sprite, but instead of it stretching and loosing it’s shape, it repeats. It would be handy for a ladder sprite for example.


:bust_in_silhouette: Reply From: MySystemLagz

In the import tab of the image you want to tile, set Repeat (which is under the Flags section) to Enabled.

Now after adding your image to a sprite node, go to region, tick enable, and now you can play around with the Rect settings to tile your image.

:bust_in_silhouette: Reply From: dethland

You need to reimport your image and enable the “repeat”. Then in the Sprite node, switch the enabled under the region to on. Set the w (width) and h (height) to the value you want. So for the ladder, you need to set the w to the width of your ladder and set the h to the height you want to reach.

Thanks, not much info anywhere on it. The node inspector options is what I was missing :slight_smile:

JayH | 2022-07-07 11:50