You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression in 3.88. Animation frame duration ignored and frameRate fixed at 24Â #7070
So state.msPerFrame || state.currentFrame.duration will never check currentFrame.duration because msPerFrame is set to 1000/24
Example Test Code
constdurationArray=[10,20,30,40]constframeArray=this.game.anims.generateFrameNames("test",{start: 0,end: durationArray.length-1})for(leti=0;i<durationArray.length;i++){frameArray[i]["duration"]=durationArray[i]}this.game.anims.create({key: "test",frames: frameArray})sprite.anims.play({key: "test"})// will run at 24 FPS, ignore durationArray
Hi @sylvainpolletvillard. Thanks for submitting this issue. We have fixed this and pushed it to the master branch. It will be part of the next release. Do test it out and let us know if you encounter any issues.
Activity
VonAncken commentedon Mar 12, 2025
I can confirm the problem in Version 3.88. I had to go to version 3.87 so that the duration in the AnimationFrames is not ignored.
zekeatchan commentedon Mar 12, 2025
Hi @sylvainpolletvillard. Thanks for submitting this issue. We have fixed this and pushed it to the
masterbranch. It will be part of the next release. Do test it out and let us know if you encounter any issues.sylvainpolletvillard commentedon Mar 12, 2025
I confirm this commit fixes the issue
Fix phaserjs#7070. Correctly use animation frame duration when it is âĶ