hi, i've decided to create a game making Construct 2. i'm having problems with the health system for the player though, i want it so if it hits a wall then it takes off health, and if it hits 3 times then you die and restart the level.
i have a Global Variable for health set to 8 and when the player collides with the walls it subtracts 2 from the health
i also have a compare variable when the health is = to 0 it restarts the layout
but when ever the player hits the wall they die almost instantly and it either continues playing the level with 0 health or it freezes. i've tried looking for health tutorials but can't seem to find the problem
if anyone could help me i would appreciate it heaps