Help - drag and drop layers not consistenly displaying

May 18, 2022

I have set up a drag and drop interaction where I want a layer to show briefly if the drop is correct and another layer to show briefly if the drop is incorrect.  For some reason, for the same drop item, sometimes the layer shows and sometimes it doesn't.  I can't figure out why?  Can anyone help?

1 Reply
Walt Hamilton
There is an old saying in the theater: "Anyone who puts kids or animals on the stage deserves what happens to them." That means that no matter how well-behaved, or well-trained you think they are, at some time they are going to revert to their true nature, and you can only hope it doesn't happen during a performance.  The SL correlation is: "Anyone who uses groups deserves what happens to them." That means that no matter how well-behaved or how well-trained you hope they are, groups don't play nicely with anything, and especially not states, clicking on, and triggers. Sooner or later, you are likely to have problems with them.
 
I used a group in SL once, and it worked the way I wanted. I think it was in 19...  No, wait. I'm thinking of another program, Maybe ...  Well, it doesn't matter; the point is that groups don't work in SL. Pretty much you can use groups, or you can have triggers and states that work, but not both.
 
You are pretty much playing with fire with what you have here. What I think I'm seeing is a picture, and a rectangle with text grouped together. The triggers are referring only to the picture, and not the group. It might work better if they referred to the group, but I wouldn't trust it.
What you need to do is to ungroup them, select one ( I would choose the pic, because you already have triggers written for them) and copy the other. Then edit the states of the picture, and paste the text onto the Normal state. That locks to two objects together, but not as a group. It seems likely to me to work much better that way.
 
By the way, closing the layers when their timeline ends can be done in the layer properties.