|
|
|
 |
Attention |
Topic was automatically imported from the old Question2Answer platform. |
 |
Asked By |
JayH |
Hi,
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.
Thanks.
|
|
|
 |
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.
|
|
|
 |
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 