Holes in Spawning Platforms?
NY415
Member Posts: 25
Hi Guys,
How do you make random holes in randomly spawning platforms? I understand spawning the platforms, but how do you create random openings in the platforms for the character to go through? And how do you make sure the the entire platform isn't filled?
Thanks!
Comments
Spawn multiple platforms.
So instead of this:
▓▓▓▓▓▓▓▓▓▓
Spawn 2 like this:
▓▓ ▓▓▓▓▓▓▓
Should work something like this:
Assuming a platform length of 10
First section, random 1-8
Second section 10 -1(for the space) -first section
Position the two sections appropriately
Great, thanks socks I think that makes a lot of sense.
I do pretty much what Socks describes in a tutorial, linked below, if you're interested:
http://gamedevelopment.tutsplus.com/tutorials/buzzy-bee-create-a-flappy-bird-style-game-in-gamesalad-step-by-step--gamedev-14733
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page