How do I display digits from Global number

Get help using Construct 2

Post » Tue Jun 07, 2016 9:30 am


Sorry for my english,

How can I display digits from a Global number? I have global number e.g. 1234567 and i want display chosen digits in text.
Text1 = 12
Text2 = 345
Text3 = 67
Is it possible? Thanks for help!
Posts: 2
Reputation: 229

Post » Tue Jun 07, 2016 11:32 am

I haven't tested it, but you could get the first example by dividing your global variable by 10000, which'll make it 12,34567 and then use the command "set text to : floor([your global variable's name here])" which should round it up to 12.
Posts: 41
Reputation: 917

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests