#HELP FOR ANIMATIONS AND PIVOTS

1 messages · Page 1 of 1 (latest)

steel shale
#

guys i nead help, i watched this video: https://youtu.be/PNWK5o9l54w and im trayng to recreate it in unity, the only problem is this, basically in my game I'm adding animations for the attack ... and the weapons in question go out from the player offset. for example if the player both sideways and forwards and backwards is 32x48 px, if he has the weapon in hand it will be 36x56 px or so. my problem is that i don't know how the animations would behave on unity, i might end up with the weapon that is totally in the wrong place in all the animations.

LINKS
Project Files: https://github.com/tutmo/2D-Character-Creator
Unity Documentation: https://docs.unity3d.com/ScriptReference/AnimatorOverrideController.html

SUMMARY
This 2D character creator can be expanded to include a virtually infinite number of body parts and options to fit your own Unity games. The player can select any combination the...

▶ Play video
bleak willow
#

I thought two solutions for this problem, but tbh i don't think they're the most pratical. One is adjust the pivot of the character sprites that have the weapon based on how much wrong the position is. The second one is add the weapons as a separeted sprites and implement them as child of player's game object (and i think it is what you're doing). Then you set the position of the weapon manually

steel shale