1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-30 16:56:47 +00:00

wombo combo

This commit is contained in:
Cameron Taylor 2021-07-15 18:22:15 -04:00
parent 98a77811be
commit f314fe3a4b
2 changed files with 17 additions and 0 deletions

View file

@ -34,8 +34,16 @@ class ComboCounter extends FlxTypedSpriteGroup<FlxSprite>
// add(grpNumbers);
}
public function forceFinish():Void
{
effectStuff.animation.play('funny', true, false, 18);
}
override function update(elapsed:Float)
{
if (effectStuff.animation.curAnim.curFrame == 17)
effectStuff.animation.pause();
if (effectStuff.animation.curAnim.curFrame == 2 && !wasComboSetup)
{
setupCombo(daCombo);

View file

@ -3014,7 +3014,16 @@ class PlayState extends MusicBeatState
&& !SONG.notes[Math.floor(curStep / 16) + 1].mustHitSection)
{
var animShit:ComboCounter = new ComboCounter(-100, 300, combo);
animShit.scrollFactor.set(0.6, 0.6);
add(animShit);
var frameShit:Float = (1 / 24) * 2; // equals 2 frames in the animation
new FlxTimer().start(((Conductor.crochet / 1000) * 1.25) - frameShit, function(tmr)
{
animShit.forceFinish();
});
}
if (curBeat % gfSpeed == 0)