I am using a “game manager” node to handle other functions, but on my spinbox script I want it to either recognize positive or negative steps and then complete different functions accordingly.
Im not receiving any error messages but when the value of the box increases or decreases, I want it to complete different functions in either scenario.
You should actually describe the error you are getting.
However if -step will only ever be false if step = 0.
For example if step = 7 then -step = -7 and if -7 evaluates to true.
Similarly if step evaluates to true for any value other than 0.
So the block of code you post will run both if statement blocks on any non-zero value for step and will run neither of the code blocks when step = 0.
You will want to change that to if step < 0 and if step >=0
Sorry I’m pretty new to coding and godot, I rewrote the thread hopefully to make it more clear. I tried your suggestion but got the same outcome.
I am making a souls-like leveing system so when I click up on the spin box, I am making a blue text number label visible while hiding the players white “actual” level. The spin box would just increase or decrease the value of the blue text then when the player hits save, the actual level just equals the blue text level.