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
 1943

Smooth Scroller Bar Code

by IHack3dYou - 06-07-2019 - 12:13 AM
#1
Here ya go:



void SimpleSmoothScrollingremake()
{
float toPos;
if (optionCount > maxOptions)
{
if (currentOption > maxOptions)
{
toPos = (0.1f / 3) + ((maxOptions * 0.035f) + 0.110f);
}
else
{
toPos = (0.1f / 3) + ((currentOption * 0.035f) + 0.110f);
}
}
else
{
toPos = (0.1f / 3) + ((currentOption * 0.035f) + 0.110f);
}
if (scrollBarPos > toPos) {
scrollBarPos -= .001999f;
}
if (scrollBarPos < toPos) {
scrollBarPos += .001999f;
}
}
This account is currently banned
Ban reason: Multi
Reply
#2
ye it is :v lol
Reply
#3
this was copied from livemodz sprx leave him credits
SPARBYMODZ  |  DEV    
Reply
#4
(06-07-2019 - 12:13 AM)IHack3dYou Wrote: Here ya go:



void SimpleSmoothScrollingremake()
{
float toPos;
if (optionCount > maxOptions)
{
if (currentOption > maxOptions)
{
toPos = (0.1f / 3) + ((maxOptions * 0.035f) + 0.110f);
}
else
{
toPos = (0.1f / 3) + ((currentOption * 0.035f) + 0.110f);
}
}
else
{
toPos = (0.1f / 3) + ((currentOption * 0.035f) + 0.110f);
}
if (scrollBarPos > toPos) {
scrollBarPos -= .001999f;
}
if (scrollBarPos < toPos) {
scrollBarPos += .001999f;
}
}

desnecessario isso mano
Reply
#5
Smooth scroll was first done by Unbound i think were his credits at?
Add my Discord Kiwi2014566#9755
Reply
#6
This is just a simple smooth scroller method but gotta give creds where due :)
Reply
#7
THANKS MAN NICE
Reply
#8
void SimpleSmoothScrollingremake()
{
float toPos;
if (optionCount > maxOptions)
{
if (currentOption > maxOptions)
{
toPos = (0.1f / 3) + ((maxOptions * 0.035f) + 0.110f);
}
else
{
toPos = (0.1f / 3) + ((currentOption * 0.035f) + 0.110f);
}
}
else
{
toPos = (0.1f / 3) + ((currentOption * 0.035f) + 0.110f);
}
if (scrollBarPos > toPos) {
scrollBarPos -= .001999f;
}
if (scrollBarPos < toPos) {
scrollBarPos += .001999f;
}
}
This account is currently banned
Ban reason: Leeching and Spamming
Reply
#9
I think livemodz had this???
Reply

Users browsing: 1 Guest(s)