godot_recipes icon indicating copy to clipboard operation
godot_recipes copied to clipboard

[Discussion] Spritesheet animation

Open cbscribe opened this issue 4 years ago • 8 comments

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

cbscribe avatar Feb 03 '21 03:02 cbscribe

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

chriscamacho avatar Feb 20 '21 15:02 chriscamacho

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

chriscamacho avatar Feb 20 '21 15:02 chriscamacho

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

chriscamacho avatar Feb 20 '21 15:02 chriscamacho

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.

cbscribe avatar Feb 20 '21 16:02 cbscribe

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

MeBadDev avatar Mar 12 '22 02:03 MeBadDev

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.

herc34es avatar Mar 13 '22 14:03 herc34es

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

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

cbscribe avatar Mar 13 '22 15:03 cbscribe

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?

cbscribe avatar Mar 13 '22 15:03 cbscribe