Skip to content
Snippets Groups Projects
Commit a852c89b authored by DrCash-KMark's avatar DrCash-KMark
Browse files

moving backgrounds fix

It reapets as it should, resizing is still needed
parent 1d1cb8b5
Branches
No related tags found
1 merge request!21Moving background added
...@@ -31,7 +31,7 @@ public class BackgroundRoller : MonoBehaviour ...@@ -31,7 +31,7 @@ public class BackgroundRoller : MonoBehaviour
if (currentSprite>=bgSprites.Count-1) if (currentSprite>=bgSprites.Count-1)
{ {
currentSprite = 0; currentSprite = -1; //never do this at home kids
} }
//if there are sprites left & we are over half the height, we instantiate another sprite at the top //if there are sprites left & we are over half the height, we instantiate another sprite at the top
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment