- Edited
I'm developing a platform 2D game and the main caracter, the Princess
have multiples animations already working. But some of this animations have sprites with different sizes and because this, the frames don`t stay centralized when the animation play.
Have a way to a make a pivot that a I can use as reference for drawing the frames? Or, to define how the frame should expand during the drawing in the canvas?
What a I'm trying to do is make all the frames stay centralized in relation with one another for when the animation plays the transition of frames stay looking good. A quick fix that a I have made was to set all the sprites/frames size to the same dimensions. But this is not good, looking I will have a lot of images with small sprites but big dimensions.
Besides that, but relationate with the topic:
When my caracter attack, the sprite size is much more bigger than the collision shape, because the collision shape only cover the body of the caracter, not covering your sword.
- Have a way that a I can instanciate a new collision shape only when she lands a attack?
This way I will have two collisions in a instant of time, one for the her body and other to the sword attack. (I already looked in other topics (like this) but I not understood right and I don't if the solutions there will fit good in my case).