spritesheet and frames problem

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mhd08

So i usually when i get a sprite sheet for the enemy or the player and get everything done for the hframes and vframes, it look perfect. But when i try to change frame the character move, not the sprite it just visually moving, is there any way to fix that?

Hard to say without something visual (image, video, …), but it sounds like your frame alignment within your sprite sheet might be off? That is, maybe each sprite is shifted by an extra pixel (or more) in each subsequent frame - which would give the illusion of movement when cycling through the frames.

jgodfrey | 2023-06-14 21:40

So is there anything to do that can fix it? Because i’m using an asset

Mhd08 | 2023-06-14 21:46

If the problem is what I mentioned above, you’d just need to make appropriate adjustments to how you’re slicing up the sprite sheet in order to keep the expected alignment between frames. So, yeah, you should be able to fix it.

Is the asset free and available for examination? If so, maybe post a link here…

jgodfrey | 2023-06-14 21:58

Here is the link for the sprite sheet i’m using:
Magic Wizard | [Animated Character] by Penzilla

Tge thing is the sprite visually move when i try to change the frame, it does not move in the x and y, same thing if i try to change a bit in hframe or vframe

Mhd08 | 2023-06-15 07:25

Have you animated the sprite here? The comments seem to imply that the sprite is configured correctly, and that you can move but you need a AnimationPlayer or something to actually change the sprite’s frames as it is being moved.

spaceyjase | 2023-06-15 08:54

Yes i used the AnimationPlayer and tried to animate it but the thing is when i need to animate it i need to change frame, when i do that it, the sprite change it place, it does not stand still in one place, sometimes it goes backwards, sometime to front, and the x and y are equal to 0

Mhd08 | 2023-06-15 10:05