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
94
S
33
G
114
Posts: 5,359
Reputation: 73,779


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 48 guests