Forum Discussion
Turning an object during a drag and drop
I was wondering if turning and object during a drag and drop was possible.
I am assuming it would be with states, but I can't figure out to get it work. Attached is PowerPoint, with what I would like to occur.
Also, this may need some javascript, but I am trying to complete this "task' without the need for javascript
I'd make a video. Not sure how many people are comfortable accessing a macro-enabled PPT file to look at what you want.
- AnneLynchCommunity Member
Didn't realize that, sorry, changed it to a PDF. I am not sure a video will work for this.
There are a few ways you can do that. The core of it is to:
- Create a normal bottle state and a pouring bottle state
- Create a normal bread state and a covered bread state
- Then add triggers to change those states.
Here's a video where I tested a few ideas to get you moving in the right direction.
- AnneLynchCommunity Member
It wouldn't let me change the state, so that bottle leaves and returns to the area. Also, the syncing is off, and the bread moves I have attached the file.
https://360.articulate.com/review/content/1eccf578-a8e0-4703-80db-71e4189e9bd4/review
Without seeing the actual file, it's hard to see how you have it set up.
Considering how close the objects are together, I'd probably forgo the drag interaction and use a clickable interaction.
- Select your object to be sauced
- Select your sauce
- Create a motion path to the object. You can add a turn state to the bottle that changes when the motion path animation is complete. And then have it return when the state of the bread is changed to sauced.
Something like that would work.
- AnneLynchCommunity Member
I thought I attached the actual file now, instead of the URL link.
Yes, that could work, but here is the file - as well.
The goal is to display correct and incorrect feedback. So, if I did a clickable, I would just make have the slide advance based on conditional statements.
- AngeCommunity Member
This may help with the state change, it's a download on SL by Jonathan Hill, it has twirling plates. If you open the SL file you can see step-by-step how to achieve an animation with states and triggers. https://community.articulate.com/download/storyline-spinning-plates