I am trying to develop a custom made scroll-bar(or should I call it number-picker) with graphical elements and input functions.
I think there is an example where a certain Phaser game object can be constrained in coordinates.
For example it can be set to only move along X axis in certain range, but Y stays always unchanged.
I should be able to drag it only in X axis, so left and right.
Can you suggest some example for this bit?
Here is a picture of what I try to do:
As you move the handle to right, the number on the left decreases down to zero. As you move the handle to the left, the number increases up to 100. Simple.
Note: No need for Physics.