Oyed Posted April 11, 2015 Share Posted April 11, 2015 Using the .setText() method on text already added in to a Stage isn't instant - for example, if I call .setText() before a FOR loop, the FOR loop will execute before the text has actually been set. Is there a way around this? I've heard Bitmap fonts are good for this, but I can't use a Bitmap font at this stage of the application (The issue is happening on the preloading screen). Quote Link to comment Share on other sites More sharing options...
xerver Posted April 12, 2015 Share Posted April 12, 2015 This is because setText stores the value and sets the dirty flag, then when the render loop comes around it rerenders itself. If you need to update the text immediately, you can call .updateText() directly. That will redraw the text object to the new text you had previously set. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.