Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Visibility is remembered between slides, but state is not?

Community Beginner ,
Oct 28, 2015 Oct 28, 2015

I am trying to build a course module around a main page with links to topic slides, which can be clicked in any order. An example main page might look like this:

Screen Shot 2015-10-28 at 1.48.43 PM.png

Ideally I would like clicking a button to do the following:

  • Set the state of the button to "clicked", which lightens the background color, so it's visually clear which topics have been viewed
  • Display a short summary of the topic to the right of the button (currently in a hidden caption box)
  • Jump the a slide on the topic, which then returns to the main slide, where the changes described above can be seen

At first I created a shared action for this...

Screen Shot 2015-10-28 at 1.50.40 PM.png

The odd thing is that, when I click the first button to go to its slide, and then return to the menu, the change in visibility of the description has stuck, but the button's state has reset to the default.

Screen Shot 2015-10-28 at 1.49.29 PM.png

I was only able to get the effect I wanted by having the button's action set a variable, and then running a conditional action when the main slide loads that changes button state if the corresponding variable is set.

Button action

Screen Shot 2015-10-28 at 1.51.08 PM.png

Slide action

Screen Shot 2015-10-28 at 1.51.30 PM.png

Doing this for the second two buttons, I get the desired effect for them (didn't bother updating the first one for this example):

Screen Shot 2015-10-28 at 1.49.50 PM.png

So, now I have something that works, but I am a bit confused: I would understand if neither the state change nor the visibility change stuck, or if both stuck, but this inconsistency makes me think I may be missing something.


Bottom line: is there a better way to do what I want?

201
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 28, 2015 Oct 28, 2015

You need to do it with the On Enter Slide event, indeed. That means you have to use variables. If you want to use a similar action in other projects, turn the conditional action into a shared action. When dragging that shared action to the Library of another project, the used variables will automatically e created.

However: I would add the text to the state 'Clicked', which means you don't have to use a separate command to show the Text. You seem to ignore that? Here is one of the screenshots of

...
Translate
Community Expert ,
Oct 28, 2015 Oct 28, 2015

You need to do it with the On Enter Slide event, indeed. That means you have to use variables. If you want to use a similar action in other projects, turn the conditional action into a shared action. When dragging that shared action to the Library of another project, the used variables will automatically e created.

However: I would add the text to the state 'Clicked', which means you don't have to use a separate command to show the Text. You seem to ignore that? Here is one of the screenshots of my last blog post, where I used a custom state (Invisible) in which an image and a text bubble was added.

VisibGrStates.png

Based on my experience with conditional actions, I mostly avoid the operator 'not equal to', you could have use 'equal to 1' as well, more to be trusted.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 28, 2015 Oct 28, 2015

A ha! That's a big thing I'd missed or misunderstood when I first read your blog post. I had thought a state only allowed you to change the formatting of a particular object. But by going into the State View for the "clicked" state, I can add captions, shapes, or whatever else I want, and those objects will only appear when the button is in state "clicked". That simplifies the workflow and opens up some interesting possibilities. Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2015 Oct 28, 2015
LATEST

Sorry that you misunderstood! You cannot add interactive objects to a state, the InBuilt states are also limited but you can definitely add static objects to custom states. That is what I showed in the Visibility instance buttons.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources