- Home /
Unity 2d Toolkit Specific Frame
Hey, I am using 2d toolkit to make a sprite game. I have the players throwing punches but the problem is the punches should only do damage during the delivery, not the wind up. So I need to have some way to check what frame the current animation is on. This way I can tell whether the opponent should take damage or not when the collide with each other.
is there a way to return the current frame in an animation using 2d toolkit?
I dont use 2d toolkit so im not sure about the setup but if you use OnTriggerEnter, the damage should only be applied once
Yes, but damage not only needs to be applied once, but only at certain moments. thats why i need to know the current frame of the animation, or the sprite id.
I $$anonymous$$now this is a little off topic but does unikron software (the people who make unity 2d toolkit) have a decent answers website, this question would be better suited there if there was one.
Your answer
![](https://koobas.hobune.stream/wayback/20220613105608im_/https://answers.unity.com/themes/thub/images/avi.jpg)