Change the state of a button on one scene from a trigger on anothe
Sep 28, 2012
By
Kathy Waits
I'm working on a project where I have a main menu with lesson buttons. When a lesson button is clicked, the user is taken to the first slide in the lesson scene. I have set up a button state that shows a checkmark icon on the lesson button, and I would like for that button state to appear on the main menu after the timeline of the last slide in the lesson starts.
This is what I have tried doing to set this up, but it's not working. I think I'm missing a small something or going about this completely wrong.
- On the Main Menu, I created a state for a Lesson button called "Completed Lesson." This includes the checkmark icon.
- I created a variable called "ShowCheckMark" and set the default to "False."
- On the Lesson button in the Main Menu, I created a trigger that states "Change state of Button" to "Completed Lesson" when Variable "ShowCheckMark" changes on Condition that ShowCheckMark is equal to True.
- On the last slide of the actual Lesson, I created a slide trigger that states "Set ShowCheckMark to equal to True when Timeline Starts."
After Previewing Entire Project and completing the lesson, the button on the Main Menu does not change states. Any suggestions? Am I doing this completely wrong?
15 Replies
Hi Kathy,
From what I understand, you should make a tiny change to your trigger at point 3. The change is in bold.
Hope it helps and don't hesitate to post back if you need further information.
Annie
Anne, thank you for your reply! However, the slide is in a different scene, and I can't reference when the timeline starts on that slide...I can only reference objects on the Main Menu slide.
Hi Kathy,
You need to tell it to change the state of your button on the Menu slide When the timeline of the Menu slide starts if the variable is set to True. You don't have to make a reference to any other slides except the menu.
If you want, you can also post your project file so we can take a look at it.
Annie
But if I do that, the checkmark automatically appears when the timeline on the Main Menu starts. I want the checkmark to appear when the timeline of the last slide of the lesson (in a completely different scene) starts. My project file is really, really large, but I'll see if I can post it.
Kathy reread what Annie has said, because if you use a variable the menu will only be check when the variable is true which is when you return to the menu.
Annie has given you the correct information. If you want the check to animate in on returning then that is different, doable but different
Okay, I retried...I left out the condition! It works! Thank you so much, Anne!! Perfect...
I accidently left out the condition (is what I meant to say)...
Glad it worked!
Have a nice weekend!
Thanks Phil for improving the response with such details.
Annie
Don't think I added anything, just waiting for some files to FTP which is why I was interfering.
I also had the SAME issue, I just gave up. And now because of this small change, it works! Many thanks! :-)
Glad that this thread was able to assist you as well Jay.
Hi all,
I'm having the same problem, and can't fix it following these steps.
I'm using a tick icon for each chapter on the menu to show when a chapter has been completed
I've created a variable for each icon, called Complete1, Complete2, etc.
I've got this trigger on the menu for each tick icon (e.g. for chapter 1):
Change state of "icon 1" to "complete" when "the timeline starts" "on this slide"
IF Complete1 = value True
At the end of each chapter, I have a small animation, and I have the trigger:
Set "Complete1" to value "True" when Video 1 completes
... but the icons aren't changing state when I test it
Any ideas?
Thanks Jorge
Hi Jorge,
Thanks for contacting us and sharing the details of what you are experiencing in your project.
You mention that the state is not changing on the icons, but were you able to confirm that the variable is adjusting? I like to add a variable reference to the slide during testing to verify.
With your permission, I'd like to take a look at your project file to investigate what's happening. You can share it publicly here, or send it to me privately by uploading it here. I'll delete it when I'm done troubleshooting.
Hi there,
I got in touch with Articulate Support, and they helped me sort it out!
Thanks so much
Jorge
For future reference if anyone else has the same problem, Jorge followed all the correct steps, but possibly forgot one: Set the menu slide to reset to initial value when revisiting. that guarantees that the timeline will restart when you revisit it.
This discussion is closed. You can start a new discussion or contact Articulate Support.