Returning to normal state
Oct 15, 2013
Hello!
I'm building a slide in SL where users can drag an object (a plastic bottle) and drop it on another object (a scale). Essentially, the users are "weighing" the object. When my object is dropped on the target, it works beautifully (text on scale changes to different amount with a state). But, my problem is that I cannot seem to return my scale text to the normal (0.00) amount when my object is removed. I played around with the variables, but still can't get it to work. Basically, I need the state to change back to normal when the object is removed from the target, but that is not one of the build in options.
Any suggestions? I've included my file, if that helps.
Thanks!
Christie
11 Replies
Hi Christie,
You need another event to cause the object state to change again. See the attached example. I added another drag object . You could cue this visually by making it a platform or table. You could add a trigger to the dragged object to reset the display to normal when clicked. This is probably easier than adding the extra drag event.
Steve
Thanks, Steve. Good suggestion. You also mentioned adding a trigger to the dragged object (bottle) to reset the display. What would this look like? The dragged object only has one state right now. So would I change the state of the scale text to reset when...? My problem seems to be the when. I tried setting it to when User clicks outside (of dropped area), but that doesn't seem to be working.
I'm still having issues with this interaction, and can't seem to figure out a way to reset the scale to normal when the user drags the bottle off. Anyone else have any suggestions?
Thanks!
Christie
Hi Christie
Place a new transparent rectangle shape at the back of the bottle. Add a new state to the scale, and add the following trigger.
Change state of scale to 0.0 when bottle is dropped back to the new rectangle shape.
Regards
Dipti A
Thanks, Dipti!
So I'm thinking the only way around this is placing a transparent or white rectangle that resets the scale. It's close to what I was going for...just have to be careful that the user doesn't click anywhere else or the scale won't reset.
Slightly different implementation. I made the drop spot a bit bigger, snapped it to center and placed the other clearing shape behind. This way you can drag the shape anywhere outside of the scale drop zone and it should reset.
Hi Christie! Looks like you're getting some additional help/ideas here
Thanks!
Yes! This is great, Steve! Exactly what I was looking for! Thanks so much for everyone's help! Love the Articulate community!
Thanks for the update Christie! Glad to hear that you were able to get the assistance that you needed
Hi Christie,
I've figured it out. I created another trigger with the "Object Dragged Over" clause that I set up as follows:
I've attached the version with this trigger added. Also, as someone else suggested, you can create a larger drop area and set drop object (bottle) snap to the center. It looks a little neater.
Thanks Pappu for sharing your solution here - and welcome to the Heroes community!
This discussion is closed. You can start a new discussion or contact Articulate Support.