godot-4-importality icon indicating copy to clipboard operation
godot-4-importality copied to clipboard

Doesn't respect loop count set to 1

Open ruguysgoingtrickortreating opened this issue 2 years ago • 7 comments

I'm not sure if this is how you are supposed to disable looping in aseprite but if it is the animation still loops

Please post a screenshot of the import settings dock that reproduces your problem. Do you use Aseprite or LibreSprite? And what version?

nklbdev avatar Oct 04 '23 03:10 nklbdev

I was about to post the same issue, but I figured out the solution in my case:

func _physics_process(delta):
	if input_vector.y > 0:
		if animated_sprite_2d.animation != "Crouch": # Without this if-statement "Crouch" would loop even though the name in Aseprite is "Crouch -r:1"
			animated_sprite_2d.play("Crouch")

You might want to write about this in the docs, even though the problem is not with Importality.

lukaskrepel avatar Oct 09 '23 18:10 lukaskrepel

Thank you for your comment! Today or tomorrow I will devote some time to this project, and perhaps I will solve your problem.

nklbdev avatar Oct 10 '23 07:10 nklbdev

I'm really sorry, but I couldn't devote time to this project this week because I'm very busy at work. I'll try the next one.

nklbdev avatar Oct 15 '23 11:10 nklbdev

I tried to reproduce this problem. I couldn't do it. Please send me an archive-file with Godot project that reproduces this problem. This can be the most minimal project, which will only contain your *.aseprite file and necessarily the *.import file that relates to it.

nklbdev avatar Oct 16 '23 15:10 nklbdev

I think I understand what your are talking about. If no suffixes were added to a tag in Aseprite, and if the “Repeat” checkbox is not set in it, then in Aseprite the animation is repeated endlessly, but in Godot - only 1 time.

I fixed it.

nklbdev avatar Nov 17 '23 17:11 nklbdev

sorry for not responding for so long i completely forgot what i meant by this until now

when you set the loop count to only loop once in aseprite tag settings it still loops forever in godot, i made this bug report before i discovered -r:1