So I have this simple Tween:
FlxTween.multiVar(title, { y : FlxG.height / 2, alpha : 1 }, 10, { complete: ShowMenu} );
This is how the function looks like:
function ShowMenu():Void{
FlxG.camera.shake();
subtitle.alpha = 0.8;
}
These are the errors I'm getting:
source/MenuState.hx:42: characters 79-87 : Void -> Void should be Null<flixel.tweens.CompleteCallback>
source/MenuState.hx:42: characters 79-87 : Void -> Void should be flixel.tweens.CompleteCallback
source/MenuState.hx:42: characters 79-87 : Void -> Void should be flixel.tweens.FlxTween -> Void
How do I use this correctly? Sadly there's no example given in the Demo, so I think this should be added to it. I'm probably not the only one running into this issue. I hope so at least. :)