Funkin/source/funkin/TankCutscene.hx

28 lines
455 B
Haxe
Raw Normal View History

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