**HELP WITH MONSTER DASH STYLE PLATFORM SPAWNS**
CreativeJuicesEntertainment
Member Posts: 85
Preface: I would like help with a way to code this, not a link to a template.
Like in Monster Dash, I want to be able to spawn platforms that are separate from each other. I do want the platforms to be randomized (different sizes). I need to know the most efficient way to randomly spawn different sizes/variations of platforms and make them equally separate from each other.
Thanks in advance and any leave a comment if you have any further questions/need more detail. Thanks
Like in Monster Dash, I want to be able to spawn platforms that are separate from each other. I do want the platforms to be randomized (different sizes). I need to know the most efficient way to randomly spawn different sizes/variations of platforms and make them equally separate from each other.
Thanks in advance and any leave a comment if you have any further questions/need more detail. Thanks
Comments
Maybe that's not what your asking for, though.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Currently I'm doing it where the platform hits a certain X coordinate, it randomly chooses a platform, spawns it, but I'm having issues.
Sometimes when the platform destroys it disables the same platform of its kind's rules (preventing respawn).
That's why I'm wondering what the best way to do it is.
to answer your question though, there are many, many, ways to do it. One way is to have an actor that detects if it is touching a platform. If it is touching one, then platTouch = true, otherwise platTouch = false. Then, in your actor that spawns platforms, it will be if platTouch == false then spawn (you could have a timer that said after .3 seconds spawn if you need more delay) and it will spawn it over the sensor actor (the one that determines platTouch). platTouch will become true because it's touching a platform and then once the platform moves away platTouch will become false and it can spawn again.
Yeah that could work. Triggering it based on whether the actor is touching the platform is a good idea. Thanks.