Image state doesn't show but it works in the background

Oct 21, 2020

I built an activity on identifying hazards. The background image is the "correct" scene, the hazards are images I placed on top. Once clicked, it shows an explanatory layer on how this should be avoided, then once that's closed the state of the image should change to Hidden state but it doesn't.

I tried creating a custom state to my images to make them disappear so the correct image can be seen underneath but that doesn't work either. What is extremely strange is that every once in a while when previewing the slide, the states behave correctly, but then the next time they don't. Also, I linked a variable to the change of the state of all my images and it's tracking it correctly, so even though the change of state is not visible, it still works in the background.

Has anyone seen this before?

 

6 Replies
Math Notermans

Although im not sure if this causes your issue, it can cause problems. In your SL your layer and the image with states both are names the same. 'Stairs', 'Carpet' for both layers and images. I renamed the Carpet and Stairs in the baselayer to CarpetImg and StairsImg. Also exchanged the images in the states for some custom ones of my one, just to see if it works...well it works properly then.
Correction...still not working... i do think it might be timing....closing layer before the action can be performed...testing that...

Math Notermans

So completely fixed your scene. Now working as expected. Main issue was the background mp4. That was very confusing. Also using scaled video isnot very wise. It will use unneccessary bandwith and slow down performance unneeded. So i scaled down your video to the size in the SL. Further i changed your state-images into a normal and a correct one with both an image. That makes it way easier then using hidden and vars.

Other point that might have used issues was the 'Slide Layer Properties'.
I enabled on the base layer: 'Prevent the user from clicking on the base layer' and 'Pause timeline of base layer'
Often find these 2 needed for a proper interaction...

Adding the SL-file fixed and the PSD i created for it...

Kind regards,

Math

This discussion is closed. You can start a new discussion or contact Articulate Support.