Attack animation is in the range of 20-40.
When this "Animation Playing" and it will come to "The hit frame" sensitive around the frame 30.
So should I make a check on the frame, and when it strikes 30, so do it harm etc.
Or do you guys use some sort of timer based attack system like.
Code: Select all
if ((pDevice->getTimer()->getTime()-pEntity->attackTimer)>(1500/(pEntity->attackspeed/100)))
{
........
}
Thanks guys.