Spike trap that go from ground and you have to dodge it

Hi I have a trap where the spike flies out of the ground if you go through the box and you have to dodge. But I don’t know how to make it reappear after every death. I have to destroy the box actor to avoid loop.

I’ve attached a video to give you an idea

And here is blueprint

hi,
you could use a boolean like isTriggered? on you box collider / branch or you disable the collision. when the player dies you reset it via event or event dispatcher.

hope this helps :slight_smile:

cheers

I try to make it so that every time player dies the collision is enabled.

Player BP

Trigger BP
image

But it’s not working. It says that:

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this new category will help you to get an answer.

In the meantime, good luck and happy developing! :slight_smile:

Hi everyone, I’ve tried everything and finally figured it out. I think that the way I did it is not quite right, but it works.


Here is how i did it.

Here is player BP


If player dies it set var.