problème avec les variables Mar 18, 2021 By jy les Bonjour, Je n'arrive pas à changer la valeur d'une variable vrai / faux en fonction de l'état "zone de dépôt correcte" ou "zone de dépôt incorrecte" d'un objet (afin de pouvoir utiliser ultérieurement cette variable). Pouvez-vous m'expliquer pourquoi ? En pj le déclencheur utilisé. Merci d'avance JY
Maria Costa-Stienstra Staff 3 years ago03/22/21 at 7:14 pm (UTC) Bonjour, Jy! It sounds like you are having issues combining a True/False variable to a drag-and-drop event. I'm here to help! However, it looks like your attachment did not come through. Can you please try again on your post by clicking Add Attachment? Thank you!
jy les Author 3 years ago03/23/21 at 7:06 am (UTC) Bonjour, Voici un exemple de ce que je souhaite mais il est certain que je ne le fais pas bien. Je veux changer l'état d'une variable lorsque la réponse au test est juste pour une utilisation ultérieure. Dans le cas présenté, je souhaiterais changer l'état du rectangle en bas lorsque la variable est à "vrai". A bientôt test_variable.story
Maria Costa-Stienstra Staff 3 years ago03/25/21 at 4:02 pm (UTC) Bonjour, Jy! Thank you for sharing your .story file! I noticed you had two triggers in your Correct layer that had conditions: However, since you are already in the Correct layer, it means those conditions have been achieved, so there's no need to include them. Once you remove the conditions and have the following triggers: Set Variable1 to True when the timeline starts on this layer; and Change the state of Rectangle 3 to Nouvel état when the timeline starts on this layer; then your project works as expected. Let me know if this works!
jy les Author almost 3 years ago05/21/21 at 7:09 am (UTC) Bonjour, J'ai mis longtemps à pouvoir essayer votre solution, mais enfin, j'ai pu réaliser l'exercice. Merci beaucoup, cela fonctionne parfaitement. Cordialement Jean Yves
Leslie McKerchie Staff almost 3 years ago05/21/21 at 12:20 pm (UTC) No worries, JY. Thank you for popping back in to share an update, and I'm glad that it's working well for you.
5 Replies
Bonjour, Jy!
It sounds like you are having issues combining a True/False variable to a drag-and-drop event. I'm here to help!
However, it looks like your attachment did not come through.
Can you please try again on your post by clicking Add Attachment?
Thank you!
Bonjour,
Voici un exemple de ce que je souhaite mais il est certain que je ne le fais pas bien.
Je veux changer l'état d'une variable lorsque la réponse au test est juste pour une utilisation ultérieure.
Dans le cas présenté, je souhaiterais changer l'état du rectangle en bas lorsque la variable est à "vrai".
A bientôt
Bonjour, Jy!
Thank you for sharing your .story file!
I noticed you had two triggers in your Correct layer that had conditions:
However, since you are already in the Correct layer, it means those conditions have been achieved, so there's no need to include them.
Once you remove the conditions and have the following triggers:
Set Variable1 to True when the timeline starts on this layer;
and
Change the state of Rectangle 3 to Nouvel état when the timeline starts on this layer;
then your project works as expected.
Let me know if this works!
Bonjour,
J'ai mis longtemps à pouvoir essayer votre solution, mais enfin, j'ai pu réaliser l'exercice.
Merci beaucoup, cela fonctionne parfaitement.
Cordialement
Jean Yves
No worries, JY. Thank you for popping back in to share an update, and I'm glad that it's working well for you.
This post was removed by the author