FlxTimer Issue

27 views
Skip to first unread message

Nuno Nunes

unread,
Mar 7, 2016, 1:11:25 PM3/7/16
to HaxeFlixel
Hey guys, it might be a little stupid question , but I was used to use the FlxTimer like on the Cheatsheet for instance: 



pause_Timer = new FlxTimer(1, retryState, 1);
function retryState(Timer:FlxTimer)
{
		FlxG.resetState();
}


It says now: source/PlayState.hx:284: characters 29-30 : Too many arguments

What am I doing wrong here ? :\
I have the latest haxeflixel version installed

Gama11

unread,
Mar 7, 2016, 1:32:12 PM3/7/16
to HaxeFlixel
Should be 

pause_Timer = new FlxTimer().start(1, retryState, 1);

Seems like an error on the cheat sheet.

Nuno Nunes

unread,
Mar 7, 2016, 2:14:31 PM3/7/16
to HaxeFlixel
ahh...awesome thanks Gama11! That worked perfectly.
Reply all
Reply to author
Forward
0 new messages