I want to add a mechanic to my game but I cant figure it out

What behavior do I need to use to make a platform break after contact with the player, turning off it’s hitbox after a certain amount of time after touched

2 Likes

The “destroyer” behavior in “components” can delete stuff from existence, and just connect a timer to that.

2 Likes

I would use the Enable behavior. It has a True and False input. Whenever the player interacts or touching it at a certain point, put it into the False input to disable the collisions on that object.
Then you can have it go back to True after a duration to have it solid again if need be.

3 Likes

I made a game called The simulation that does this exact same thing. Give me one sec i will give you a link

here you go:

if you go into the library you can either use the glitchout folder. All of these will deactivate and reactivate the block after a second DOES NOT DESTROY the block.

Or you can go into the decay blocks folder. I have it setup with an animation that runs before it destroys but you can remove that to have the block destroyed.

If you need any further help just let me know :smile: