Slider stepping issue.
BlitzMax Forums/BlitzMax Beginners Area/Slider stepping issue.
| ||
Hi! I'm creating a user interface, and I stumbled upon an annoying problem which I can't solve. I just can't get the damn thing to go even up! I want it to go even up no matter what size and steps you choose if that makes any sense :P Anyone who can throw me a helping hand? :) Thanks! |
| ||
A simple order of operation issue I think...SliderPos = ((MouseY() - Y)/StepSize)*StepSize |
| ||
Nah, Didn't work :( |
| ||
You're right, it makes no difference. Sorry I didn't understand the problem. What do you mean by "even up". |
| ||
this is not perfect, but.. |
| ||
I guessed that was the issue Zeke and just came back to post almost the exact same code (even down to SliderPos being in the range 0 to SliderSteps :) |
| ||
Got it working now, Thanks guys :) I just couldn't get my damn head around it! |