Health Damage Issue

I have a problem. basically i’m working on my game and I have a enemy that drops an object which deals damage, but the update script used to ensure that it does damage makes it so that it continuosly deals damage whenever the object is touching the player. I wan’t it to only deal damage once.

Here is my project: Version 212-14-2022_17-06-42.wick (2.3 MB)

1 Like

Just add a flag at the default to be on false… then at the update script, add an if statement if the object hits the player, just set the flag to true…

Version 212-14-2022_18-11-27.wick (2.3 MB)

1 Like

Thank you very much!