How do I make set the score without decimal?

Get help using Construct 2

Post » Tue Dec 06, 2016 12:51 pm

ok, if have no problem if it simple text but when it come to webstorage, i do have it.
first of all

I only know how to put Set text to Round(score) ---- eg score: 10000
but when it come to webstorage it goes like this : set text to webstorage.Localvalue("score") eg. score 10000.0000

ok how do i do this? i want remove the decimal...
B
7
S
2
Posts: 22
Reputation: 569

Post » Tue Dec 06, 2016 12:57 pm

place an "int" before it and set the value inside the ()
Image
B
107
S
24
G
17
Posts: 1,359
Reputation: 22,266

Post » Tue Dec 06, 2016 1:04 pm

straight and simple! wow it really work now...thanks...really.
B
7
S
2
Posts: 22
Reputation: 569


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, Artepi, karthikavnair, OBLIVION, Rable and 15 guests