Slider object?

This forum is currently in read-only mode.
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Is there any "slider" object in Construct? Something like a volume control slider (similar to the Windows volume control sliders).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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 you

  • Thanks for the quick reply. How do I install the plugin though?

  • 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

  • Anywhere to get these plug-ins/cap files? Looks like they have long since expired.

  • Hi lucid, please can you reupload the plugin and the cap again ? The links are removed! Thanks in advance!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)