Hi guys, sorry by the big post title. I’m having some problems with frame rates after calling animations from a keyboard input detection.
From my thoughts, I think it’s because the Input is inside the Update() and so is the call for animations. So it’s like it’s calling the animation every frame, repeatedly.
Not sure if that’s right, but I wonder if there’s a different way to call an animation after detecting a key press and that way isn’t called every frame. I thought about trying to use animationComponent[“xxxxx”].enabled from a function, that would still being called from the Update, after the detection. So maybe the proper question is: Is there a different way to detect a key press, outside function?
thanks
ps: Correct me if I’m wrong, but in the AngryBots I couldn’t see their input detection inside an update function, so maybe