- Home /
Add space between repeating textures scaled horizontally.
Halo. I have created a ground for my player to run on in 2d mode. To create the ground, i have resized my texture to fill the screen. Also i have scaled the texture horizontally and animated it to get a scrolling feel making use of its horizontal offset values. Now the problem i face is that i want to get gaps between repeating(or scaling) textures so that if the player enters those zones, the player falls into infinity thus ending the game. Currently the texture just scales horizontally and i couldn;t figure out a way to create gaps in between. Any help is appreciated.
this is not generally how you would create an interactive 2d background texture. the character cannot detect a gap in a texture. there would need to be gaps in a collider to fall through. can you post your picture?
Answer by madruytb · Sep 08, 2018 at 02:47 PM
Can you give more details how currently your ground texture repeats itself?
Answer by Sanjay1987 · Sep 08, 2018 at 05:03 PM
@madruytb Ya I have set the WrapMode to 'repeat' on the Sprite and scaled it horizontally
Your answer
![](https://koobas.hobune.stream/wayback/20220612174243im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Transparent Gaps between textures 0 Answers
problem with gap at specific radius 0 Answers
How to remove gaps in a repeating texture? 2 Answers
Graphical issues - hole/gaps in the texture 0 Answers
Assigning UV Map to model at runtime 0 Answers