Hi all!!
My goal is to display text after an attack, I want the text to be there for 90 frames then clear off.
This is the code Im using:
The problem is, the last line "SceneManager._scene._logWindow.clear();" makes no text appear, Im assuming thee text is displayed but the 90 frame wait its not kicking in, if I dont insert that last line, the text is displayed but not cleared out after the 90 frames.
I tried placing de number 90 instead of the "wait" variable, to no avail.
Any tips or pointers?
Thanks!!!
My goal is to display text after an attack, I want the text to be there for 90 frames then clear off.
This is the code Im using:
Code:
var text = 'Congratulations!';
var wait = 90;
SceneManager._scene._logWindow.addText(text, wait);
SceneManager._scene._logWindow.clear();
The problem is, the last line "SceneManager._scene._logWindow.clear();" makes no text appear, Im assuming thee text is displayed but the 90 frame wait its not kicking in, if I dont insert that last line, the text is displayed but not cleared out after the 90 frames.
I tried placing de number 90 instead of the "wait" variable, to no avail.
Any tips or pointers?
Thanks!!!