- Home /
help with increment value after float value
I'm having a problem with incrementing values, the problem is the following, I have two floats, float Increment, and float Value, and what I want is that every time this float Value passes 350.0f, 360.0f float is added for float Increment, I tried using "if", but every time the float Value goes past 350.0f, 360.0f float Increment is added infinitely and I wanted that every time the float Value passed 350.0f, 360.0fa float Increment was added only one time.
Comment