I've been challenged by NotionGames to make an infinite runner as I learn how to better use C2. Challenge definitely accepted! ...buy oye, am I hitting a roadblock early on.
When you run the layout, you should see four instances of the Ground object...top and bottom (picture a corridor from the side). I have it set up so that when the instances reach a certain X-coordinate, they'll cause the GroundSpawn objects to spawn new instances of the Ground object to keep the simulation of an endless corridor going while also keeping the overhead way down. No more than 4 or 6 instance of the Ground object should be needed at any given time according to my reckoning.
However, no matter how carefully I look, I cannot figure out why the first four instances of the Ground object - at the start of the layout - do not trigger any new instances via the GroundSpawn. Could someone point out to me the problem, please, so I can understand what I'm missing? I'll work out a solution (although I won't mind if you make a suggestion, either).
Develop games in your browser. Powerful, performant & highly capable.
ArcadEd - Thanks, my friend. Your imagepoint suggestion was actually something I was trying before, but had trouble implementing. I think it's because of my failure to see the fact that I was spawning new Ground instances over existing ones. I'll try that again...