hi i want the player to press the button and an animation to play such as a sword swing etc not jumping or anything complicated
I would use an animation blueprint and blend spaces.
There are 2 ways:
- using play montage in AnimBP ( https://docs.unrealengine.com/en-US/Engine/Animation/AnimHowTo/AdditiveAnimations/index.html )
- Cast to player character in level BP (or character BP) and make node Play animation. It is difficult, because in the end of animation you should assign AnimBP class again ( https://docs.unrealengine.com/en-US/BlueprintAPI/UserInterface/Animation/PlayAnimation/index.html )
As for me, for player character I recommend use layered animation and anim montage