2022-03-08 08:13:53 +00:00
|
|
|
package funkin;
|
2021-04-10 00:34:25 +00:00
|
|
|
|
|
|
|
import flixel.FlxSprite;
|
2023-05-25 22:33:39 +00:00
|
|
|
import flixel.sound.FlxSound;
|
2021-04-10 00:34:25 +00:00
|
|
|
|
|
|
|
class TankCutscene extends FlxSprite
|
|
|
|
{
|
2023-01-23 03:25:45 +00:00
|
|
|
public var startSyncAudio:FlxSound;
|
2021-04-10 00:34:25 +00:00
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
public function new(x:Float, y:Float)
|
|
|
|
{
|
|
|
|
super(x, y);
|
|
|
|
}
|
2021-04-10 00:34:25 +00:00
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
var startedPlayingSound:Bool = false;
|
2021-04-10 00:34:25 +00:00
|
|
|
|
2023-01-23 03:25:45 +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
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
super.update(elapsed);
|
|
|
|
}
|
2021-04-10 00:34:25 +00:00
|
|
|
}
|