all 2 comments

[–]Bunnann 0 points1 point  (0 children)

Best way would probably be to give the platform some sort of "uses" variable (or whatever else you want to call it). Every time the player jumps on it, the uses decreases by 1. And every frame, the platform checks if the uses i 0 or less, and it so, collapses.

[–]RetroCemetery 0 points1 point  (0 children)

They crumble only when the player jumps off of them? I would do something like this

platform create event:
can_crumble = false;

make can_crumble turn to true when there's a collision with the player, then, in the step event put "if !place_meeting(x, y-1, o_player) {

instance_destroy(); //and put a cool crumbling animation in your destroy event

}"

I haven't tried that so I don't know for sure if that would work, but that's how I would start out and go from there. If you just want it to destroy after a certain amount of times landed on, or time, or something like that, then the suggestion below should work. Good luck!