mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-10-31 20:04:32 +00:00
28 lines
448 B
Haxe
28 lines
448 B
Haxe
|
package;
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|