- Home /
Animation and Methode won't sinc
I have a problem with the recoil animation of an 2D gun. In the script the the gun shoots if you hold down a button. Then I invoke a cooldown methode in 0.4 sec after which the gun shoots again. So I made an animation for the gun. The samples is 60 (so there are 60 frames per sec right?) and the end key frame is at frame 24 (0.4 of a second). Logically every time the animation starts over again the gun should shoot. The problem is that after like 4 seconds od shooting you notice a delay between the shot and the animation. My problem is that i have no idea where this delay comes from...
Thank you for any answers!
Comment