Object states don't work for all objects on the screen

Apr 11, 2023

Hello,

I have four images on a screen. The learner clicks each to jump to a new slide and learn about a subject. They return to this slide at the end of each jump and the image they selected, is supposed to turn black and white to show that they have visited that one.  This process works for the 2nd, 3rd, and 4th image on the screen but not the first, even though I have used the exact same process for all four images. 

I also notice that if I revisit one of the previously Selected objects, it changes back to Normal after I visit for the second time. 

I tried creating a customed state but I got the exact same result. I added a trigger to each object to "manually" change the state to Visited after the image is clicked. Neither of these seems to work. Can someone take a look at this scenario and tell me what I'm missing?  

For brevity I've removed the content of the course and just kept the active elements.

Thanks!

2 Replies
Judy Nollet

Hi, Jay,

The attached version shows how to program this so the buttons only change states (custom state called "done") when the user returns to the slide after completing the associated section. 

To do this, I created T/F variables to track whether the section is done (True) or not (False, which is the default value of the variable).

Since you so nicely created a short version to share, the triggers to change the variables to True happen when the timeline starts on the associated slide. However, for longer sections, you'd only adjust the variable on the last slide of the section. And, depending on the content, you might want it to happen when the timeline ends or when another interaction is done. 

FYI: Here's more about creating a custom menu slide: https://community.articulate.com/discussions/building-better-courses/create-a-custom-menu-slide 

P.S. The built-in states (e.g., Hover, Selected, and Visited) have built-in functionality. For example, an object with a Selected state will automatically change to Selected when clicked (and then change back to Normal when clicked again). An object with a Visited state will automatically be Visited when clicked. It's best to avoid triggers that duplicate the built-in behaviors.