1 decade ago by Disdanes
Hey guys, I'm working on a 2D adventure game but I'm having some trouble with getting damage dealt correctly to my entities. Currently damage is dealt through the check function the entities have, but I'd like this to be called only once per collision as opposed to 30 times a second. Essientially when my character walks around and then attacks entities, the sword entity collides with a monster entity dealing 10 damage, but it happens so rapidly it ends up dealing 300 damage instead. Any suggestions on how to make this happen once until the next time the character attacks ?