korlibs / korlibs/korge

Playing Single SpriteAnimation without looping resets back to the first frame

Open
#2,311 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

When playing a single sprite animation without looping, I would expect the animation to stop playing and continue to display the very last frame at the end of the animation, however, I am noticing that the sprite always resets to the first frame of animation once the animation is complete.

Example:
https://github.com/user-attachments/assets/c01c5f9d-24cf-4419-bd62-feff314f6921

Project (using Korge 6.0.0-beta4): https://github.com/TyGuy123321/KorgeSpriteAnimation/tree/main

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the linked KorgeSpriteAnimation example with Korge 6.0.0-beta4 and reproduce a single SpriteAnimation played without looping. Trace the animation-completion behavior and verify that the final frame remains displayed instead of resetting to the first frame.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.