Need to get an animation playing on a keypress

My punch animation plays indeed but i need them to play when I need them.
Link to my project > PlayCanvas | HTML5 Game Engine

Hi @PotatoIndivdual ,
I found your ArmAnimController script, and I am pretty sure it uses an outdated animation system. Also, your entity that the script is attached to has both an animation and an anim component (the one that says legacy)


So, if you take the one that says legacy off, you can use this tutorial:

Let me know if you need any more help!

2 Likes

To be honest this seems pretty complicated to implicate, if you can maybe you could help me implicate it or guide me through it better,
Thanks!

I’m still having issues with the anim component and what not, please if anyone can help i’d appreciate it!

Can you be more specific please?

1 Like

I’ve been having issues trying to implement an animation on a key press using thee anim component and state graph but its been proving extremely difficult and the docs arent helping, here’s the link to the project, thanks for helping!
https://playcanvas.com/editor/scene/2224135

The idle animation is already working. If you follow the instructions on the page @Codeknight999 shared, step by step from top to bottom, you can easily extend it with another animation. Once you’re done, I can help with any issues you run into.

Alright i’ll try to look into that and see what I can do!

2 Likes