Disable dragging multiple objects at once

  1. 3 years ago

    Hello,

    I've created a puzzle, which works fine.
    The only problem is, users are able to drag multiple objects at once (on tablets).
    Is there a way to disable this? To allow only one drag action at a time?

    Thanks in advance for your help and time!

    With kind regards,
    Casimir Smets

  2. Angelo S

    22 Dec 2020 Administrator

    you could use an Interactivity Area to cover the area and intercept touches to avoid dragging other objects. Then play with this interactivity area visibility and layer level when you drag the objects...

  3. Hi Angelo,

    Thanks for your answer!
    I will definitely experiment with this!

    Greetings,
    Casimir

  4. Hi Angelo,

    Could you explain more in-depth how I could achieve that?
    Because, as far as I can see, the drag actions happen at the same time, so changing the layer of the interactive area on a drag-action won't interfere with the drag actions already happening?

    Thanks for your help and time!

    Greetings,
    Casimir

 

or Sign Up to reply!