Result in approximately

Get help using Construct 2

Post » Fri May 10, 2013 9:20 pm

How to do hp result result in approximately?
I have something like that:
HP: 10.5902358209/15

That makes that problem when i put regenerate 0.0005 every 1 tick and i want to make show only 11 hp in ~
Please answer, ty :)
B
20
S
4
G
3
Posts: 136
Reputation: 2,774

Post » Fri May 10, 2013 9:33 pm

Several ways using expressions.

say your variable is HP and it's equal to 10.2343234

When you want to do something with it say Floor(HP) and it will equal 10.
You can also use Ceil or Round

https://www.scirra.com/manual/126/system-expressions
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Fri May 10, 2013 9:43 pm

Thanks, i will write an result when i done it.

Ok, thanks man, all right now :)Rexu2013-05-12 08:31:32
B
20
S
4
G
3
Posts: 136
Reputation: 2,774


Return to How do I....?

Who is online

Users browsing this forum: Bad Wolf, davides, NRABrazil, Vallar, Walessio, Yahoo [Bot] and 26 guests