Hi, beginner here. I’m trying to create a top-down pixel game like the old Zelda in (16*16 pixel). However, when i am creating the attack animation of the player, i encounter a problem.
i want to make the character punches lighting when player attacks. So i combine both punching character and the lighting into one single sprite and put it into the attack animation. and of course, that sprite is bigger than 16*16. However, since its bigger than the idle and walking sprite, when the attack animation plays the character shift its position. i believe that its because the sprite is played based on the center of the sprite rather than the position of the character sprite. making it looks like the character move from his original position.
is there a way to fix it? So that even when i use bigger sprite in the animation, the position of the player sprite remains the same? or do i need to separate the hit box sprite (lighting) from the character attack animation.