Drag and drop free form questions and states...
Apr 01, 2016
By
Mike B.
I'm working on a little project using a drag and drop interaction. It's working pretty well, but I'm having an issue with the states of an object. My couch with the rotate icon embedded should rotate 90 degrees each time it's clicked. This works if only one of my triggers is enabled, but not with the others enabled, even though I have different conditions set for each one.
Also, is there any way to "save" the location of these objects once they are placed on the drop location, so that they can be restored to that location when the course is re-visited? I think you can see where I'm going with this. Project file is attached below.
6 Replies
Hi, Mike -- Thanks for reaching out with your question and for sharing your file! I will defer to your fellow community members to chime in with their advice and suggestions, but I wanted to mention you'd be welcome to post over in our BBC forum, as well. :)
Hi Mike setting your slide to resume saved sate should mean they are in the same place.
As for the rotate I only spent a couple of minutes on this so only doing 3 positions, it is the trigger order they are changing but to fast to see, this is a little better
Wow, thanks Phil! I'm going to have to sit and think about why the order of the triggers affects this. With the conditions set for each, I thought only one would run with each double-click.
Triggers fire from top to bottom (I am sure you know that bit) so if you have a sequential order then the state has changed before you can see it so the next one fires, so the simple thing is to put them in reverse order, I messed around with the order and couldn't work out the reverse order so settled for 3 state changes working.
It may be that you need a different initial state instead of normal. most states evaluate as normal so that may fix the final object rotation
Ok, at least I know where the problem is now, so I can go from there. Thanks!
This discussion is closed. You can start a new discussion or contact Articulate Support.