ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 2175

Animated Scroller

by FlexOuuu - 07-06-2018 - 11:21 PM
#1
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
Reply
#2
Wtf is animated scroller
Papa A1 Original
Reply
#3
Eh, this smooth scroller, idk how to call it. Sorry.
Reply
#4
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
Papa A1 Original
Reply
#5
Ahh sorry, i'm new and so lazy for explore. Thanks, i will try to do something with it
Reply
#6
Well Tbh if your gonna say your lazy and cba to look. or try, then no ones going to helo you. smh
2021 Best Be Better Then 2020
Reply
#7
(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

How to define scrollBarPos? I tried some positions and it's isn't working. Scroller is bugged and "lefting" menu.
Reply
#8
This is pretty cool idea!
Reply
#9
(07-07-2018 - 12:06 AM)FlexOuuu Wrote: Ahh sorry, i'm new and so lazy for explore. Thanks, i will try to do something with it

You cant be lazy if your coding or youl end up leeching
This account is currently banned
Ban reason: multi | IP: 86.20.193.29 | Email: N/A
Reply

Users browsing: 1 Guest(s)