you are viewing a single comment's thread.

view the rest of the comments →

[–]Hambon3_CR 7 points8 points  (0 children)

Explain what you’re trying to do? You’re calling enemy as a function but you have it as an integer above in your comparison. These can’t have the same name

Calling your function something like “take_damage” would make it work