[Resolved] Platform Creation

Hey guys,

So I’m creating a platform game. Platforms scroll across the screen, and the player jumps on them. If he falls off, he dies!

Anyways, where I struggle is creating the platforms. What I am doing right now, is laying them all out in virtual space, and then they scroll across. Is there a more efficient way to do this?

Thank you! [import]uid: 28237 topic_id: 31642 reply_id: 331642[/import]

Loop them if they look the same (changing y coord probably), or spawn using a timer - if you have 100 platforms off the screen then that is obviously not so good for performance, especially if all are physics objects. [import]uid: 52491 topic_id: 31642 reply_id: 126431[/import]

Just did that, and it does work. I may have further questions, but for now thats all I need!

Thank you [import]uid: 28237 topic_id: 31642 reply_id: 126456[/import]

Glad to hear it, good luck with your project!

Peach :slight_smile: [import]uid: 52491 topic_id: 31642 reply_id: 126599[/import]

Loop them if they look the same (changing y coord probably), or spawn using a timer - if you have 100 platforms off the screen then that is obviously not so good for performance, especially if all are physics objects. [import]uid: 52491 topic_id: 31642 reply_id: 126431[/import]

Just did that, and it does work. I may have further questions, but for now thats all I need!

Thank you [import]uid: 28237 topic_id: 31642 reply_id: 126456[/import]

Glad to hear it, good luck with your project!

Peach :slight_smile: [import]uid: 52491 topic_id: 31642 reply_id: 126599[/import]