Speed of slider decreases when it should increase

hi, I’m having trouble figuring out this math which should make the speed of a slider increase as you increase the power of a golf swing (by scrolling)

the power meter is on the left, and the slider is at the bottom. my problem is that the slider gets slower as the power bar goes up, and faster while the power bar goes down, where it should be the opposite.

here is my math. there is a tween that uses the variable SliderSpeed to change its speed.
power is a variable that can be changed from 0-100
image

I have the +0.5 at the end to ensure that the speed doesn’t reach zero, so the fastest speed is 0.5 seconds, and the slowest is 2 seconds.

how can I change this math so that when power == 0, slider speed will be 2, instead of 0.5.

basically, sliderspeed needs to decrease as power increases, instead of it increasing as power increases. thanks

1 Like

I just changed it to decrease the speed by 2%, the same way that “Power +=2” increases power by 2%, because it’s out of 100.
image

image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.