Hi guys I have a problem creating my game. I am making a game that when clicked the platform where the player is is removed and if a platform fails it disables the platform behavior and falls to the void.
there are 3 platforms in a group and it only works with platform 1, if platform 1 fails it does disable the behavior, but if platform 2 fails nothing happens.
What makes platform 1 fall into the void when platform behaviour is disabled? There’s nothing in the events to do this, so I can only assume you have a physics behaviour on the platform objects. In which case, does plataform2 have physics behaviour? And is it set to Dynamic?
You should put an event that when jumping clears one platform at a time in a specific order. A very simple method is…
Create multiple Platforms1 on multiple Sprites, the same Sprite
Then you put instead of: (if the player is higher than the platform, it is deleted), you can also Put, (If the player presses the “Jump” button, platform +1 is deleted) Thus, 1 is deleted first, then 2, etc.
This is example method, isn’t the “best” method but now you know right?
@Tundan, apologies, I’ve misunderstood what you have been asking. I thought it was just the platform above the player that has the behaviour turned off, but you want it for all platforms if one of them is missed.
In that case, use a “Pick all plataforms” as a subevent :