Change State Not Working

Feb 14, 2023

I have a slide that has a tab called Other Components. When I click on it, it takes the user to a layer that has 7 items on it.  Each item has a hotspot on top of it that does two things. 1st, it changes the color of the item under it so that the user knows that they have selected that item when they return to this layer. 2nd the hotspot takes them to another layer that describes the item they just selected. When the use returns to the original layer (via a button) the item they selected is not showing the State change.

My code looks like this in this order.

Change state of Vent to New State when the user clicks hotspot1

Show layer Vent-Definition when the user clicks hotspot1

I've done this many times before and never had an issue with states but I can't get it to work here.  Any suggestions?

Further Testing: I think there may be an issue with changing states on a layer, going to another layer and then returning to the original layer. Note that if I remove the rule that says show the 2nd layer the hotspot changes the state of the item as intended. The problem seems to occur when I jump to another layer and then return to the layer with the items on it. I even tried splitting the commands so that they weren't both assigned to the hotspot to see if it was a timing issue but had the same results.  The change of state takes place when I click on the hotspot but if I go to another layer and then return to that layer the item displays back in its original state. 

1 Reply
Walt Hamilton

Two suggestions. I would not use the hotspots; I would attach both triggers directly to the objects. Then I wouldn't use the trigger to change the state. I'd do all the color changes in the object's Visited state.

If the problem still persists, check the properties of the layer. It sounds like it could be set to return to initial state, or automatically decide on revisit. Set it to Return to saved state.

One additional note. If you want to leave the slide, and have the objects in Visited state, you need to also set the slide to return to saved state.