This is my very first post here and I am super excited that I hit my first roadblock. Essentially I want change the layout of my game based on certain condition.
I am pretty sure that i have the right idea with my event sheet All I want to do is change the layout based on a specific condition. If the player destroys the bridge they will fall down outside the bounds of the layout, and when this happens I want to go to the secret level.
So If the bridge tile is not on screen and the player falls through the layout bounds, I want to go to the secret level.
If anyone could help out that would mighty kind of you
-Player is outside layout
-Go to layout
is that what you want?
Develop games in your browser. Powerful, performant & highly capable.
Not necessarily, I need to change the layout only if the tile is missing. I would post a image of my event sheet Scirra isn't letting me.
How about this?
You can add a global variable "tileDestroyed=0".
So when the tile is destroyed, set "tileDestroyed to 1"
-tileDestroyed = 1
How would that look in an event sheet?
Still not quite, I need to make sure if the player falls through the layout (Player.Y > LayoutHeight) and the tile is destroyed then go the secret level, otherwise if the player falls through the map i just restart the layout.
Thanks for all of your help by the way.