Simple slider movement on mouse click
First create a widget and add a slider anywhere you want. Make sure you anchor at the right place. Then create binding at the “value” section.
Make it look pretty or whatever.
Go to the graph editor and well add event on capture begin.
Add the coddddeeee
It’s simple, when its pressed the first time it adds 100 to the value when pressed again it subtracts 100.
Get ayesha ashraf malik’s stories in your inbox
Join Medium for free to get updates from this writer.
Then add the widget to the viewport.
Make sure you created a variable that stores the value of slider. I called it position because well it stores the position.
and ta-da its done.
Demo
Next i will learn how to animate the slider, so stay tuned.
Goodbye for now.





