Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't respect loop count set to 1 #17

Open
ruguysgoingtrickortreating opened this issue Oct 4, 2023 · 7 comments
Open

Doesn't respect loop count set to 1 #17

ruguysgoingtrickortreating opened this issue Oct 4, 2023 · 7 comments

Comments

@ruguysgoingtrickortreating

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

@nklbdev
Copy link
Owner

nklbdev commented Oct 4, 2023

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

@lukaskrepel
Copy link

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.

@nklbdev
Copy link
Owner

nklbdev commented Oct 10, 2023

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

@nklbdev
Copy link
Owner

nklbdev commented Oct 15, 2023

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
Copy link
Owner

nklbdev commented Oct 16, 2023

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
Copy link
Owner

nklbdev commented Nov 17, 2023

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.

@ruguysgoingtrickortreating
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants