i have the obstacle spawn on 3 different functions. But i cant use a delay function inside the function. I need it, so after passing it, it should destroy itself. i tried using giant boxes, so that the character would always hit the object, and after a delay, it destroys itself. but that doesnt make sense, since i introduced the death function (obviously).
Its the first time im using UE4 or any engine at all, i only have experience in web programming so please phrase ur answer as easy as possible
If you just want to remove all obstacles or items after the player passes them you could have an invisible wall behind the player that destroys those objects on overlap and simply move the wall at the same speed as the player.
Use the “setLifeSpan” Node for that. It destroys the Actor after the given amount of seconds.
Also, if you sure some of your code, it would be easier to understand your setup