another little fix

This commit is contained in:
gamerbross 2024-09-25 20:11:58 +02:00 committed by Cameron Taylor
parent 30a9887136
commit c5a76cf1d5

View file

@ -1063,6 +1063,7 @@ class CharSelectSubState extends MusicBeatSubState
playerChillOut.visible = true;
playerChillOut.playAnimation("slideout");
var index = playerChillOut.anim.getFrameLabel("slideout").index;
playerChillOut.onAnimationFrame.removeAll();
playerChillOut.onAnimationFrame.add((_, frame:Int) -> {
if (frame >= index + 1)
{