[solved] Damage over time?

i would really like to add a feature where the player takes damage every second if they’re in collision with an enemy. i don’t know what to do, please help

Hi, this is how I did it in one of my projects, I hope it will help

Im sure, that there are more solutions how to achieve this…


There is also another solution without need of using a timer. If the enemy has multiple frames in the animation, you can cause damage once per specific frame.

1 Like

thank you for that. i’m attempting to test it out but for some reason the preview wouldn’t load. i’m not sure why it’s doing that. it’s only loading so slowly when i try to preview a certain scene.

okay. i took care of the other problem. thank you for teaching me how to do this, it worked :smiley: