Sitemap
ayesha ashraf malik

ayesha ashraf malik

Hi , I am learning game development and these are my notes. Feel free to correct me.

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

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

--

--

ayesha ashraf malik
ayesha ashraf malik

Written by ayesha ashraf malik

Hi , I am learning game development and these are my notes. Feel free to correct me.