Im making a platform game and when my character hits the enemy it’s supposed to subtract so much from health from the health variable, but when i hit the enemy the variable that is subtracted is way more than it’s set to. Any help would be appreciated💯
I suspect what’s happening is the collision between enemy and player_attack_box occurs a number of times over a number of game frames.
My initial suggestion would be to add a trigger once to each of the subevents - the events with the condition player_attack_box collides with <enemy>. That way when the collision occurs over consecutive game frames, only the first one is registered.