#var
2 messages · Page 1 of 1 (latest)
you can use max() and min(), they return biggest and smallest value
jump = max(jump - 1, -1) #Will not go below -1
2 messages · Page 1 of 1 (latest)
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
you can use max() and min(), they return biggest and smallest value
jump = max(jump - 1, -1) #Will not go below -1