I am wondering, how do I make so that if I legthen a sprite horizontally, it will repeat the sprite instead of just stretching it and making it look squished?
What happens:
What I want to happen:
I am wondering, how do I make so that if I legthen a sprite horizontally, it will repeat the sprite instead of just stretching it and making it look squished?
What happens:
What I want to happen:
You need to use a tiled sprite.
When creating a new object choose “Tiled Sprite” and it will behave like you want.
More documentation here: Tiled Sprite - GDevelop documentation
This is actually a simple solution. You’ll want to be using a “Tiled Sprite” instead of a regular “Sprite”. Click on “Add a new object”, then you’ll find “Tiled Sprite”. Click on that and you should see a new window where you can choose an already made image (in this case, your ground tile), set the size parameters using the size of the original sprite (yours looks to be a 32x32 sprite), then click Apply.
In addition, if you want the selection to snap to certain values, click on the Grid icon (The one that looks like this: “#”) and choose Setup Grid. Then type in the same cell size values for the grid as your ground tile, click apply, and then click the Grid icon again and check “Show Grid”. You should now be able to tile the ground with ease!
Thank you everyone! I did not expect so many good answers!