Skip to content

Commit

Permalink
Fix animations not looping on Char Select
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Sep 13, 2024
1 parent d3d998d commit d59594e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/funkin/ui/charSelect/CharSelectSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit d59594e

Please sign in to comment.