Game Crashes due to HP Code

Im working on a rouge type game where you’re a hunter trying to live in the woods, but for some weird reason after I added the HP code each time to wolf goes into the proximity the game crashes. Could someone please explain how this is happening?


Game screenshot


Code screenshot

1 Like

Check the Timer with the Switch at bottom right of the whole code.

1 Like

this looks really cool

1 Like