mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-12-11 16:51:21 -05:00
27 lines
478 B
Haxe
27 lines
478 B
Haxe
package funkin;
|
|
|
|
import flixel.FlxSprite;
|
|
import flixel.sound.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);
|
|
}
|
|
}
|