Forum Discussion

DanHernandez's avatar
DanHernandez
Community Member
2 years ago

How to Group objects within a Slider

How can I group objects with a Slider so when I move the slider side to side, the objects moves with it at the same time?

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    You could save the objects as a bitmap, use it for the fill of a second slider and remove this slider's track fill & outline. You can then set both sliders to be controlled by the same variable, so that when you move the first slider, the second one moves as well.

  • Or, if you don't object to the user touching the object, just use the graphic for the thumb fill and you only need one slider.

  • DanHernandez's avatar
    DanHernandez
    Community Member

    Thanks for that guys! the thing is that later I would need to use this objects as a "hotspot" so the user can drop another object into it. Here you can see my file, I hope you can help me with that

     

  • DanHernandez's avatar
    DanHernandez
    Community Member

    Yep, Drag and Drop function works fine, but the object (in this case the dotted oval figure) is not linked to the slider position, so right now if you move side to side the slider, the object stays in the same position, and I would really want it to move along with the slider.

  • Try this. There are two slides, one using states, and one using motion paths. Only four of the motion paths are complete, because they are a lot more work, and I got lazy. I think there are enough of them to give you the idea. The states are 86 pixels apart.