How do I ensure Text is drawn

Get help using Construct 2

Post » Fri Aug 21, 2015 11:59 am

To fit a text we can use TextWidth and TextHeight. Manual said
Return the size of the actual text content within the text object's rectangle. Note the Text object must be drawn before these have the correct values. If you set the text then immediately access these expressions, they won't yet have the correct value. Adding a 'Wait 0.1 seconds' action will usually solve this.
But Wait is not a very good solution in here . If you have a fast machine this will be no problem. But if you have a slow mobile machine 0.1 seconds maybe will not enough. Giving a higher value is meaningless. So instead of Wait is there a option to check Text is drawn?

Posts: 177
Reputation: 8,134

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests