Forum Discussion
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.
- Is what I'm trying to do actually possible?
- If so, is there something I have overlooked which is the obvious answer?
Thank you for any insight
2 Replies
- Phil_WingfieldCommunity Member
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.
- LukeSanbyCommunity 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
Related Content
- 1 year ago
- 10 months ago
- 6 months ago