min/max variable value

Get help using Construct 2

Post » Sat Oct 31, 2015 6:19 pm

Is there a way to set a minimal and maximal variable value?
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,070

Post » Sat Oct 31, 2015 6:21 pm

You could use the clamp() expression.

every tick
> set variable to clamp(variable, 0, 10)
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MPPlantOfficial, Sup with that?, Yahoo [Bot] and 68 guests