Affectation de variable sur la sélection d'une image

Jan 13, 2023

Bonjour,

J'ai initialisé une variable X à false.

Quand je clique sur mon image je veux que ma variable passe à true.

J'ai crée un déclencheur en m'appuyant  sur l'état de mon image "selectionnée" et cela fonctionne.

Par contre je veux que quand je déselectionne l'image, ma variable repasse à faux. J'ai fait un 2eme déclencheur sur l'état "normal" de mon image mais cela ne fonctionne pas. Ma variable reste à vrai.

Comment puis-je faire ?

Je vous remercie.

 

2 Replies
Sarah Hodge

Hi Stephanie! Thanks for posting your question here! If you change the triggers to adjust the variable when the user clicks the picture on the condition that the state of the picture is equal to normal (or selected), it works. I created an example Storyline project so you can look at the triggers and see how it all works together. I hope that helps!