1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-27 23:46:45 +00:00
Funkin/source/funkin/TankCutscene.hx

28 lines
478 B
Haxe
Raw Normal View History

package funkin;
2021-04-10 00:34:25 +00:00
import flixel.FlxSprite;
import flixel.sound.FlxSound;
2021-04-10 00:34:25 +00:00
class TankCutscene extends FlxSprite
{
public var startSyncAudio:FlxSound;
2021-04-10 00:34:25 +00:00
public function new(x:Float, y:Float)
{
super(x, y);
}
2021-04-10 00:34:25 +00:00
var startedPlayingSound:Bool = false;
2021-04-10 00:34:25 +00:00
override function update(elapsed:Float)
{
if (animation.curAnim.curFrame >= 1 && !startedPlayingSound)
{
startSyncAudio.play();
startedPlayingSound = true;
}
2021-04-10 00:34:25 +00:00
super.update(elapsed);
}
2021-04-10 00:34:25 +00:00
}