Forum Discussion
Object disappearing instead of changing state
I have an object that keeps disappearing instead of changing its state. The user is supposed to drag and drop the object to a specific location on a history timeline shown on the slide. Once the user places it on the correct hotspot, the object should shrink and remain at that spot, which is accomplished through changing its state. However, the object simply vanishes instead. I've attached the trigger I'm using.
- WaltHamiltonSuper Hero
Changing to Drop Correct is part of the built-in superpower of DnD interactions. When you write a trigger that duplicates that action, SL frequently takes umbrage, and you get undesirable and unpredictable results (as you found).
If you want instant feedback, set the DnD options so the feedback is not delayed. Otherwise, if you have a need to create a trigger, copy the Drop Correct state, and rename it something else.
- AmyMerrill-WyatCommunity Member
Actually, upon more testing, the trigger is working correctly. It turns out that the object is moving to a totally different location than where I placed it, disappearing off the lower right of the visible screen. I am not using any motion paths or other triggers telling it to move, so I don't understand how it's ending up there.
- WaltHamiltonSuper Hero
I suspect that in creating the Drop Correct state, you created the new state on the spot on the screen where you wanted (or expected) it to be. When it is dragged from its original position, that puts the Drop Correct state down and to the right. Edit the Drop Correct state, and move the object to have its upper left corner on the little cross.
The visible object shows in relation to the cross, which is relative to where the Normal object actually is on the screen.
- AmyMerrill-WyatCommunity Member
Yes, you're absolutely right! Thank you for your help!
Amy Merrill-Wyatt
Technology Integration Consultant
ESC of Lake Erie West
- WaltHamiltonSuper HeroYou're welcome. PIAWYC (Pass it along when you can).