Hello Guest

Author Topic: Slider  (Read 4344 times)

bacon

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Slider
« on: August 22, 2012, 03:22:40 am »
How do you make a slider with 2D toolkit?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Slider
« Reply #1 on: August 22, 2012, 06:55:28 am »
No built in way to do this, but you can build one fairly easily - use the button class as a base to detect motion and make the button follow the finger/cursor - after that, all that remains is to constrain it to one or more axis.