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
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...
Removing the hotspot and adding the 'hide'-action directly to the image and it works.
You can add the action for showing the layer on the image too and remove that action from the layers...
Mmmm..still not working 100%...gonna fix it tomorrow
Well one big thing i found... your mp4... after 3 seconds the hazard images return... so the water etc. Offcourse this will drive you mad when trying to figure it out. All the actions work...and still the water appear ? Obvious, because its in the mp4 in the background ;-)
Fixing it all...
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
Math, you're my hero!! thank you so much for your efforts and help. I'm extremely happy it works.
This discussion is closed. You can start a new discussion or contact Articulate Support.