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

Sprite support to ping pong animation forward and then reversed #2254

Open
tylerwilbanks opened this issue Jun 29, 2024 · 3 comments
Open

Sprite support to ping pong animation forward and then reversed #2254

tylerwilbanks opened this issue Jun 29, 2024 · 3 comments

Comments

@tylerwilbanks
Copy link

I want to play an animation forward and then play it backwards indefinitely. Currently sprite.playAnimationLooped() does not provide this behavior; it only allows for forward or reversed.

@soywiz
Copy link
Member

soywiz commented Jul 2, 2024

Hi @tylerwilbanks . What's your use-case for this? F, B* (Forward and then Backwards in loop)

@tylerwilbanks
Copy link
Author

I have a 6 frame sprite idle animation where the character decays a bit and then rebuilds itself. It's an idle animation, so of course I want it to repeat indefinitely until the user inputs an action to switch animation.

By having the ping pong animation functionality, I can keep the sprite anim at 6 frames, instead of creating a 12 frame animation with duplicate frames to achieve the same effect.

@tylerwilbanks
Copy link
Author

Aseprite has this ping pong animation functionality built-in, and by having this same functionality in korge, that would make my workflow between the two tools much smoother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pending
Development

No branches or pull requests

2 participants