Custom Sliders

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Custom Sliders

Post 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.
;)
Attachments
329741EC-4F1D-4962-866A-334D2E42FE85.png
329741EC-4F1D-4962-866A-334D2E42FE85.png (95.26 KiB) Viewed 2302 times
slidertrack.png
slidertrack.png (1.49 KiB) Viewed 2305 times
sliderhandle.png
sliderhandle.png (1.88 KiB) Viewed 2305 times
Last edited by rbytes on Tue Jun 18, 2019 6:17 am, edited 6 times in total.
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Custom Sliders

Post 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.
The only thing that gets me down is gravity...

Post Reply