class Coin extends FlxSprite
{
public function new(?X:Float=0, ?Y:Float=0, ?SimpleGraphic:FlxGraphicAsset)
{
super(X, Y, SimpleGraphic);
loadGraphic(AssetPaths.coin__png, false, 8, 8);
}
override public function kill():Void
{
alive = false;
FlxTween.tween(this, { alpha: 0, y: y - 16 }, .33, { ease: FlxEase.circOut, complete: finishKill });
}
private function finishKill(_):Void
{
exists = false;
}
}
source/Coin.hx:24: characters 53-100 : { ease : t : Float -> Float, complete : _ : Unknown<0> -> Void } has extra field complete
source/Coin.hx:24: characters 53-100 : For optional function argument 'Options'
FlxTween.tween(this, { alpha: 0, y: y - 16 }, .33, { ease: FlxEase.circOut, onComplete: finishKill });