Change the state of a button on one scene from a trigger on anothe

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.

  1. On the Main Menu, I created a state for a Lesson button called "Completed Lesson."  This includes the checkmark icon.
  2. I created a variable called "ShowCheckMark" and set the default to "False."
  3. 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.
  4. 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
Annie Jean


Hi Kathy,

From what I understand, you should make a tiny change to your trigger at point 3. The change is in bold.

  1. On the Main Menu, I created a state for a Lesson button called "Completed Lesson."  This includes the checkmark icon.
  2. I created a variable called "ShowCheckMark" and set the default to "False."
  3. On the Lesson button in the Main Menu, I created a trigger that states "Change state of Button" to "Completed Lesson" when Timeline Starts (of the slide) IF Condition that ShowCheckMark is equal to True.
  4. On the last slide of the actual Lesson, I created a slide trigger that states "Set ShowCheckMark to equal to True when Timeline Starts."

Hope it helps and don't hesitate to post back if you need further information.

Annie

Annie Jean

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

Jorge Vafeas

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 

 

 

Leslie McKerchie

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.