You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timer crashes with a type error when triggered if the given delay is an integer.
The property Timer._newTick should be a num or the calculated value should be converted to a double when updating it. Or the Timer.add() should take a double and not a num.
To reproduce:
timer = game.time.create();
TimerEvent te = timer.add(1000, () =>print("timer called"));
This will crash after 1000ms with: type 'int' is not a subtype of type 'double' of 'value'.
The text was updated successfully, but these errors were encountered:
The timer crashes with a type error when triggered if the given delay is an integer.
The property Timer._newTick should be a num or the calculated value should be converted to a double when updating it. Or the Timer.add() should take a double and not a num.
To reproduce:
This will crash after 1000ms with:
type 'int' is not a subtype of type 'double' of 'value'.
The text was updated successfully, but these errors were encountered: