#Player take damage function not working

3 messages · Page 1 of 1 (latest)

clear bear
#

Im making a 2D roguelike game of similar vain to vampire survivors, where when the enemies overlap with the player, the player takes damage. However, the way I decided to implement this doesnt quite work and instead it instantly crashes and overloads the game. Is there a fix to this or alternative method i just havent been able to figure out?

sullen rose
#

You never set taking_dmg to false in your while loop, it will never end. Your if statement should be inside the while loop (indent it).

clear bear
#

i tried it and it doesnt seem to do anything now not even print the health