Skip to content

Animation Playback Adjustment#20

Open
HEIHUAa wants to merge 1 commit intoCodenameCrew:devfrom
HEIHUAa:FlxAnimation
Open

Animation Playback Adjustment#20
HEIHUAa wants to merge 1 commit intoCodenameCrew:devfrom
HEIHUAa:FlxAnimation

Conversation

@HEIHUAa
Copy link

@HEIHUAa HEIHUAa commented Feb 11, 2026

Previously, if an animation was played while the game was running at a low frame rate, it was very noticeable that the first frame played inexplicably fast.

The reason was that after play() was called, _frameTimer was set to 0. Then, in the subsequent update, it would immediately update with _frameTimer += elapsed * timeScale;.

I could have simply moved _frameTimer += elapsed * timeScale; below the if check, but doing so would cause noticeable delays in animation playback at low frame rates, and even result in stiffness when play() was called frequently. Therefore, I implemented this compromise solution.

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

Successfully merging this pull request may close these issues.

1 participant