Forum Discussion
Cannot group an image to a shape to allow variables
Sorry Roz, I only got to my computer now.
I downloaded your file and made a few changes. Let me know if that works now. (see attachment)
I had misunderstood your description earlier; apologies.
As soon as I opened your Story file I saw exactly what you meant and the problems.
What I did to fix it:
- as Nedim suggested, you should have the images for each circle button within the States of the circle itself. This way the whole circle is clickable and acts as one object. NOTE - while this works, it makes it a bit of a pain if you want to change the images because now you have to update each circle 3 times for the 3 states. A better way would have been to create the circle and the icon, then group them together and use the group for the states, rather than the individual icon image. Then any future changes would be straight forward.
- anyways, I then added in the simple trigger "SHOW LAYER" for each of the circle buttons
- I made the EXIT button's "INITIAL STATE" set to hidden. This means you dont need the extra trigger.
- and finally, you dont actually need a variable for this type of interaction. Its better to do it with the STATE function. Have a look at the trigger I created. It changes the EXIT button to Normal only when the State of all your circle buttons are "VISITED" ie. the user has clicked them. The advantage here is not just simplicity by removing a variable, and having just one trigger - its also that the STATE change works if the user leaves your course half way through and returns. The states of the circles would be saved, whereas your T/F variable might not (depending on SCORM version)
Anyways, I hope that makes some sense, and gets a solution for you!
Let me know if you have any questions. :)