Forum Discussion

LukeSanby's avatar
LukeSanby
Community Member
4 months ago

Rotate and Drag

What I'm trying to do:

I am trying to make a Drag & Drop interaction where the user can click the object to rotate it 90 degrees clockwise. I turned off "return to..." option so they can rotate before/during/after moving. 

The issue:

The rotation works great. However, when you start to drag the object it resets the rotation to the original position. 


Attempts to fix:

My attempts were mainly focussed on continuing to use the Drag & Drop slide, but I think that is what is resetting the rotation. 

 

So …

I'm hoping some of the folks here with a lot more experience could save me from wasting more time.

  1. Is what I'm trying to do actually possible?
  2. If so, is there something I have overlooked which is the obvious answer?

 

Thank you for any insight

2 Replies

  • Are you able to share the storyline file? 

    If you are using states, my guess is that storyline would reset that state when it's dragged. I would probably just bypass all of the states, and have 4 different images in the different orientation (e.g., image-0.png, image-90.png, image-180.png, image-270.png) that cycle through between hidden and normal states when clicked, and then set up the target to behave accordingly to each image.

  • LukeSanby's avatar
    LukeSanby
    Community Member

    Thanks for that. I was not using states, in fact I was working in a very over complicated way and had not even considered this. 

    Will update once I've tested but sounds like it bypasses the problem I had