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