Page 1 of 1
Custom Sliders
Posted: Sun Aug 26, 2018 6:04 pm
by rbytes
I have used these in several programs, sometimes with just a size change, and other times with different images for the handle and track.
![Wink ;)](./images/smilies/icon_e_wink.gif)
Re: Custom Sliders
Posted: Mon Aug 27, 2018 3:25 pm
by rbytes
I made an improvement to the slider action. A slider handle that is touched will follow the movement of the finger. if a finger moves too fast or drifts away from the track, it loses contact with the handle which then stops following the finger.
So I added move flags. Here's how they work. Once a finger "hits" a handle sprite, a flag is set to 1 for that slider. Now for as long as the finger keeps touching the screen, that handle will move along its track to follow the finger.