Weapon animation help

So I have an idea as to how to do this, but I’m not sure. But I already have a sprite that is moving via an animation and would like to add to it so other weapon sprites can be animated along with it (my character sprite moves up and down). Also when a variable changes, the sprite on that character will change accordingly.

I think you would need to do something with different layers, but again I’m not sure.

Can anyone help?

If you need more information, just ask!

Thanks!

Try this video, it helped me: