Hi, i'm new and maybe someone have "animated scroller" for 2much4u base? If you have, maybe can you share it for me? :P
Regards
Regards
(07-07-2018 - 12:03 AM)Bosix123 Wrote: There are posts about it!
void SimpleSmoothScrolling() {
float toPos;
if (YourOptionCount > YourMaxOptions){
if (YourCurrentOption > YourMaxOptions) {
toPos = (0.1f / 3) + ((YourMaxOptions * 0.035f) + 0.1261f);
}
else {
toPos = (0.1f / 3) + ((YourCurrentOption * 0.035f) + 0.1261f);
}
}
else{
toPos = (0.1f / 3) + ((YourCurrentOption * 0.035f) + 0.1261f);
}
if (scrollBarPos > toPos) {
scrollBarPos -= 0.0005f;
}
if (scrollBarPos < toPos) {
scrollBarPos += 0.0005f;
}
}
It was posted somewhere here