Slider object?

For questions about using Classic.

Post » Wed Nov 30, 2011 6:57 pm

Is there any "slider" object in Construct? Something like a volume control slider (similar to the Windows volume control sliders).
B
5
S
1
G
3
Posts: 59
Reputation: 993

Post » Wed Nov 30, 2011 7:15 pm

I have a sort of messy one I use for my own projects. It works great, I just never made it nice and neat:
download plugin here

download example cap here

it requires 2 objects in addition to the slider plugin itself
a slide the handle will slide on, which can be any object. I used a sprite in the example. it also needs a second sprite with drag and drop behavior on it.

it's very simple. the example cap has the slide at an angle to demonstrate that it works not only works horizontal and vertical, but at any angle. hope it's useful. I'd prefer to keep this off the svn, until some future date when it doesn't require a second object, but as I said, it works, and it's stable.

in start of layout: use setup slider: decide the two sprites you're using, and choose the minimum and maximum values you want the slider to have, and the starting value.

after that there is an action to update the value to the current slider position, and action to update the slider position to a new value that you specify (so you can move the slider around based on the value)

then there are expressions to retrieve the current value and the current 't' of the value, which is just a value from 0 to 1 representing where the handle is on the slider. depending on your knowledge of math, this is a shortcut that may or may not be useful to youlucid2011-11-30 19:25:00
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Wed Nov 30, 2011 7:25 pm

Thanks for the quick reply. How do I install the plugin though? pooiyx2011-11-30 19:33:22
B
5
S
1
G
3
Posts: 59
Reputation: 993

Post » Wed Nov 30, 2011 7:35 pm

when you download and unpack the plugin
copy that plugins directory over your current
/scirra/construct/plugins

then try the example cap, and reread my post
ask any questions if you still have them
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Thu Apr 18, 2013 2:17 am

Anywhere to get these plug-ins/cap files? Looks like they have long since expired.
B
25
S
8
G
3
Posts: 88
Reputation: 4,012

Post » Thu Apr 09, 2015 2:35 pm

Hi lucid, please can you reupload the plugin and the cap again ? The links are removed! Thanks in advance!
B
21
S
2
G
4
Posts: 30
Reputation: 3,549


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests