Hello!
I am making an infinite runner (a vertical one) and I want the layout that the user runs on to be infinite. I don't know if there are any ways to do this, but if there are I would appreciate them! The only way I have thought of doing it is having the user seamlessly teleport back to the layout start again, and some new items being randomly generated on the map.
Thank you,
OrangeFlash81
Try to check out the template auto-runner that comes with C2 !
check the template, but the simple answer is that the player doesn't move. The infinite ground is spawned on one side, then moves to the other giving the illusion of endless, forever into an abyss. good luck :)
Okay! Thanks for the help.
Actually, check out the redesign of the auto-runner I made: http://www.scirra.com/arcade/example/5920/auto-runner-v2
It's probably a bit better suited for what you are trying.
Download here if you want :) http://static1.scirra.net/arcade/games/5920/auto-runner-v2.capx
instead have a small layout and make everything move that spawns from one side of the screen and destroys on the other side of the screen. The players X position usualy stays fixed at this point
Develop games in your browser. Powerful, performant & highly capable.
Actually, check out the redesign of the auto-runner I made: http://www.scirra.com/arcade/example/5920/auto-runner-v2 It's probably a bit better suited for what you are trying. Download here if you want :) http://static1.scirra.net/arcade/games/5920/auto-runner-v2.capx
I use objectcount to check if there have any object leakage, and noticed the count keeps growing.
Is Destory do not release the resource immediately(garbage collect later)? or objectcount is not accurate?