How do I display digits from Global number

Get help using Construct 2

Post » Tue Jun 07, 2016 9:30 am

Hi,

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!
B
5
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.
B
12
S
3
Posts: 33
Reputation: 897


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 26 guests