Forum Discussion
how to make the image to be shown using variables ?
Can you help me figure out how to do this:
On the scene "G1M1", The slide 2 suggests to choose one of the teams ( there's 3 groups : bolivie, japon and paraguay ).
When a user presses on the button associated to the group, the variable activates meaning :
- When the user clicks on Button 1, set Bolivie to True + Jump to the next slide
- When the user clicks on Button 2, set Japon to True + Jump to the next slide
- When the user clicks on Button 3, set Paraguay to True + Jump to the next slide
On the scene "G1M2", on slide "3.5.Matrice", there are 3 different images according the 3 groups. I set the state of all images to hidden. Then according to what the user chose in the scene 1, the image associated to that group would show.
for example, if the user clicked on Bolivie, and the variable is set to true on the first scene, this is the trigger i made :
When Bolivie changes
Set state of Bolivia image to Normal
if Bolivie = value True.
Same thing applies for the other groups.
When i tested it out this didn't seem to work, no image was shown. Idk why what should i do ?
- MyriamLebbak813Community Member
- WaltHamiltonSuper Hero
Change this trigger:
When Bolivie changes
Set state of Bolivia image to Normal
if Bolivie = value True.When a variable changes, it is noticed only on the slide that changes it, so it changes only on the first slide, never on the second.
Change the "When Bolivie changes" to "When timeline starts on this slide", and see if that helps.