From d59594ee453b54dc48a3e4b969e6a5940c5d9b7a Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 12 Sep 2024 21:55:12 -0400 Subject: [PATCH] Fix animations not looping on Char Select --- source/funkin/ui/charSelect/CharSelectSubState.hx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/funkin/ui/charSelect/CharSelectSubState.hx b/source/funkin/ui/charSelect/CharSelectSubState.hx index dd5b2a3a2..3109dc8f1 100644 --- a/source/funkin/ui/charSelect/CharSelectSubState.hx +++ b/source/funkin/ui/charSelect/CharSelectSubState.hx @@ -131,6 +131,9 @@ class CharSelectSubState extends MusicBeatSubState var crowd:FlxAtlasSprite = new FlxAtlasSprite(0, 0, Paths.animateAtlas("charSelect/crowd")); crowd.anim.play(); + crowd.anim.onComplete.add(function() { + crowd.anim.play(); + }); crowd.scrollFactor.set(0.3, 0.3); add(crowd); @@ -147,6 +150,9 @@ class CharSelectSubState extends MusicBeatSubState barthing = new FlxAtlasSprite(0, 0, Paths.animateAtlas("charSelect/barThing")); barthing.anim.play(""); + barthing.anim.onComplete.add(function() { + barthing.anim.play(""); + }); barthing.blend = BlendMode.MULTIPLY; barthing.scrollFactor.set(0, 0); add(barthing); @@ -176,6 +182,9 @@ class CharSelectSubState extends MusicBeatSubState var speakers:FlxAtlasSprite = new FlxAtlasSprite(0, 0, Paths.animateAtlas("charSelect/charSelectSpeakers")); speakers.anim.play(""); + speakers.anim.onComplete.add(function() { + speakers.anim.play(""); + }); speakers.scrollFactor.set(1.8, 1.8); add(speakers);