Page 1 of 1

Give Damage to Zombie

PostPosted: Tue Jun 03, 2014 8:11 pm
by KiiBa
Hey guys, i need help again :D

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 :)

Regards
KiiBa

Re: Give Damage to Zombie

PostPosted: Tue Jun 03, 2014 8:50 pm
by Farsight
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