Hi Everyone,
I am trying to create an infinite scrolling 2d background. A sprite from a sprite sheet is moved to the left every tick. When it falls of the screen, its position is reset. To create the effect of an infinite scrolling background, the script that moves the sprite also creates another game object with the same sprite, and sets its parent to the first sprite.
The problem I am having is that during Play, the sprite will show a vertical purple line - that is actually part of the spritesheet I am using.
Since the frame dimensions of the sprite from the spritesheet should be constant, I have no idea why the purple background of the spritesheet is showing.
Is there any solution to this?
Spritesheet is attached.