Quote:void smoothScroller() {This code completed a smooth scroller, but it only works when moved up.
float toPos;
if (optionCount > maxOptions) {
float scrollBarPos;
if (currentOption > maxOptions) {
toPos = ((maxOptions * 0.035f) + 0.1415f);
}
else {
toPos = ((currentOption * 0.035f) + 0.1415f);
}
}
else {
toPos = ((currentOption * 0.035f) + 0.1415f);
}
if ((scrollBarPos - toPos) < 0.0020f) {
scrollBarPos = toPos;
}
else {
if (scrollBarPos > toPos) {
scrollBarPos -= 0.0020f;
}
else if (scrollBarPos < toPos) {
scrollBarPos += 0.0020f;
}
}
}
How can I make it work when it goes down?
This account is currently banned
Ban reason: Leeching/spamming
Ban reason: Leeching/spamming







![[Image: Smacker%20Solutions%20LTD.gif]](https://cdn.smacker-solutions.ltd/Smacker%20Solutions%20LTD.gif)
