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
23
S
5
G
4
Posts: 139
Reputation: 3,246

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
97
S
30
G
11
Posts: 1,545
Reputation: 21,218

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
23
S
5
G
4
Posts: 139
Reputation: 3,246


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests