Looping a float when it reaches 4

I am making it so my season will increment and when it hits 4 then it will loop back, right now I have it incrementing up to 4, then setting it back to 0, how can I make it so it starts incrementing again? I tried a function but couldnt get it to work

In your example, you never reset season length.


unrelated:

image

The other 3 are called modulo :expressionless:

ā€“ unplayable

3 Likes

thank you!
So this % is a better way to increment?

How could i reset the season?

The % does the resetting:

It wraps the value around.

1 Like

Thank you @Everynone ! Always coming in clutch :heart:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.