what i want to know is can i change the state of an object by using type only, for instance the user has to type out the correct answer for the next box to become shown? ive tried doing it with triggers but i can only see the option for one letter,
Input boxes typically change the value of a text-variable when the textentry object loses focus. This way you can have a trigger that watches that variable and activates anytime it changes. The variable can have longer text.
Then you can check the value of that text variable and have things occur based on what is there.
Change the state of Object "cat" to Visible when MyTextVariable changes if MyTextVariable = cat
Change the state of Object "dog" to Visible when MyTextVariable changes if MyTextVariable = dog
i might be being dim here but i cant find the MyTextVariable option for a trigger i am brand new to using this software so is there something im missing, i tried creating a variable as a text entry for my option but that didnt show it either. appreciate the help btw,
Here you are Mark - you will see in this file that there are triggers set to change the state of a dog or cat picture based on the value of a text input.
Very rough so apologies for the typo's but hopefully it illustrates the point so that you could implement something similar for your project.
This would obviously also work for changing the state of any object including a NEXT button.
thanks i kind of figured it out from your first comment but appreciate the upload it validates that my choice was correct thanks for the help on this one.
thanks i kind of figured it out from your first comment but appreciate the upload it validates that my choice was correct thanks for the help on this one.
Hey Mark, been away from my computer... looks like you got it worked out? Sorry if my first post was confusing. ;)
7 Replies
Input boxes typically change the value of a text-variable when the textentry object loses focus. This way you can have a trigger that watches that variable and activates anytime it changes. The variable can have longer text.
Then you can check the value of that text variable and have things occur based on what is there.
Change the state of Object "cat" to Visible when MyTextVariable changes if MyTextVariable = cat
Change the state of Object "dog" to Visible when MyTextVariable changes if MyTextVariable = dog
Etc...
i might be being dim here but i cant find the MyTextVariable option for a trigger i am brand new to using this software so is there something im missing, i tried creating a variable as a text entry for my option but that didnt show it either. appreciate the help btw,
i think i might have found a work around thank you for your help if you have suggestions to make it cleaner then im all ears
Here you are Mark - you will see in this file that there are triggers set to change the state of a dog or cat picture based on the value of a text input.
Very rough so apologies for the typo's but hopefully it illustrates the point so that you could implement something similar for your project.
This would obviously also work for changing the state of any object including a NEXT button.
thanks i kind of figured it out from your first comment but appreciate the upload it validates that my choice was correct thanks for the help on this one.
Great and many thanks for sharing.
Hey Mark, been away from my computer... looks like you got it worked out? Sorry if my first post was confusing. ;)
This discussion is closed. You can start a new discussion or contact Articulate Support.