kidscancode / godot_recipes

Lessons, tutorials, and guides for game development using the Godot game engine.
MIT License
235 stars 38 forks source link

[Discussion] Spritesheet animation #52

Open cbscribe opened 3 years ago

cbscribe commented 3 years ago

Discussion for http://godotrecipes.com/animation/spritesheet_animation/

chriscamacho commented 3 years ago

here's what I see setting up the node as described in the text... Screenshot_2021-02-20_16-17-50

chriscamacho commented 3 years ago

notice blurred image and multiple part images instead of a sharp single frame

chriscamacho commented 3 years ago

doh, got vframe and hframe wrong way round still blurred tho....

cbscribe commented 3 years ago

Click on the image in the FileSytem tab. Click the Import tab in the top left. Uncheck the box labeled "Filter". Click the Reimport button.

MeBadDev commented 2 years ago

I Don't Understand... Why Not Use A AnimatedSprite...?

herc34es commented 2 years ago

this method will not work if you have each animation as a different sprite sheet. Also, for some reason even though i "cut" it at the correct H/Vlines most animations had to be inserted one by one frame.

cbscribe commented 2 years ago

I Don't Understand... Why Not Use A AnimatedSprite...?

Because AnimationPlayer can do a lot more than display a sequence of images.

cbscribe commented 2 years ago

this method will not work if you have each animation as a different sprite sheet.

Sure it will. You can keyframe the Sprite's texture property too.

Also, for some reason even though i "cut" it at the correct H/Vlines most animations had to be inserted one by one frame.

Perhaps your spritesheet was not evenly spaced?