#var

2 messages · Page 1 of 1 (latest)

royal pollen
#

Is there a way to set the var to some limit for example:

If i have var wall jump = 0
And if on wall wall jump -= 1
Is there a way that i can limit it to not go under -1

cedar cosmos
#

you can use max() and min(), they return biggest and smallest value

jump = max(jump - 1, -1) #Will not go below -1