Hey guys, i need help again
and sorry again for my bad english, i hope you will understand it..
I made a Player Sprite, with two Frames. One Frame is normal and the second Frame is the "Attack Animation".
So, now if the Zombie is touching the Player, the Player should get Damage.
If the Player touches the Zombie (With the second Frame "Attack Animation") the Zombie should get Damage.
I have really trouble with the Collision function, i can't make it, that the Zombie get Damage, only at every hit once.
I hope someone can help me with that
Develop games in your browser. Powerful, performant & highly capable.
Better create "Hit" sprite for player and zombie. For example when player attacks its create sprite "player_hit" in front of it. "player_hit" On collision with zombie sets effect of damage