mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-30 16:56:47 +00:00
wombo combo
This commit is contained in:
parent
98a77811be
commit
f314fe3a4b
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue