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
 3554

smooth scrolling

by mikemodzz123 - 06-30-2018 - 04:20 AM
#1
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;
}
}



and put SimpleSmoothScrolling(); where ya ScriptVM_Dtr is..........before getting input obv ;P
Reply
#2
what exactly does this do?
This account is currently banned
Ban reason: multi | IP: 74.139.57.189 | Email: N/A
Reply
#3
Very nice will send this over to a friend
Reply
#4
when you whant to get first input or last one it automatic scroll to the end..called smoothscrolling
Reply
#5
thanks 
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#6
dosent work lol
SPARBYMODZ  |  DEV    
Reply
#7
Copy from Notyourdope, lol stupid
Reply
#8
Thanks for this. Was wondering how it worked
Reply
#9
this looks good, im working on my own smooth scroller atm this gave me a better idea how to do it , thanks
Reply
#10
(09-14-2018 - 04:16 AM)SparbyModz Wrote: dosent work lol

hmm i tried with my menu and it worked 100%. I also like how this code is done, its just perfect i love this share <3
Reply

Users browsing: 1 Guest(s)