Infinite Scene!
I'm looking for a method to create an infinite scene. my actor will move throught things that he need to avoid but the scene is the same until he die...the background, the sky, the terrain, etc. the actor move and the scene move with the actor like in the example down here.
http://www.newgrounds.com/portal/view/497488
here an example! anyone can help me? thanks to everybody
http://www.newgrounds.com/portal/view/497488
here an example! anyone can help me? thanks to everybody
Comments
You can do this by recycling actors. Have your platforms moving upwards. Then, when the platform gets to a certain height - say, y=400, change its y attribute to -100 or something else below the screen. You can make them speed up like in your example by simply having them accelerate upwards a little in addition to the initial motion. Making them appear in a random order is a bit more complicated, but still doable, you just need a rule that picks a random number then resets a random platform's position every x seconds.