Skip to main content
Inspiring
April 1, 2022
Answered

"Change state of" was working in advanced actions, but all of a sudden it grayed out

  • April 1, 2022
  • 1 reply
  • 596 views

I've got a user who is running an advanced action at the start of each slide called "heart_check," which checks the user's score and changes the state of a score bar and a character sprite on the screen. He built one and is trying to duplicate it, but now when he attempts to duplicate it, "change state of" is grayed out. He's got plenty of custom states, so it's not an InBuilt state issue. We've tried creating a new one, deleting the line and re-adding it, copying and pasting the slide to another project, and nothing seems ot help.

 

Is there something we're missing?

This topic has been closed for replies.
Correct answer Lilybiri

We could make these quiz slides, but there would also be non-quiz slides where the sprite and score bar would need to be checked and updated.

 

Yes, we've disabled the playbar, because this is a branching piece where different answers take you to different responses. So yeah, we also have advanced actions tied to each of the answer options that jump to the corresponding slide and update the score accordingly.

 

Can you explain or point to an online resource that would show us how to make the same sprite appear on multiple slides with the one unique ID?


I use Timing for the rest of the project all the time. It is an alternative not only for your situation, but also when you cannot use an object on the master slide because it needs an ID. Have a look at this blog:

http://blog.lilybiri.com/popups-on-quiz-slides

It is the same popup on all the slides, and uses variables to change the content. 

You can also attach scores to interactive objects, not only to quiz slides. Those scores can be included in the quizzing variables as well. Once a multistate object has gotten to a new state, since it is clearly based on previous successes, do you need to turn back to a previous state? That would be the only reason to not use 'Go to Next State'. Here is another post:

http://blog.lilybiri.com/about-state-commands-and-a-progress-bar

 

1 reply

Lilybiri
Legend
April 1, 2022

Is that character timed for the rest of the project or do you have an instance of the same character on each slide? Not only the Change State but also other actions are dimmed, which also could point to an advanced action gotten corrupted. That can have multiple causes.  This action seems to be linked to the first slide, is that to the On Enter event? Did you try to delete that line and restart with Change State? It is not normal that the multistate object and the state itself are already in the third column. Another reason for suspecting corruption.

It seems to be a very complicated advanced action with multiple decisions. Please post a complete screenshot of the Preview window of that action. You find that preview window using the first button (arrow) in the top right control panel:

Captivate can choke if you have too many duplicate advanced actions which are (mostly unnecessary) complicated

Inspiring
April 1, 2022

I'll grab a screenshot the next time the user and I meet about the project.

This is an action that is happening On Enter for each slide. It checks the score and adjusts the mood of the sprite accordingly. So each conditional is "If the score is 100..." "If the score is 90..." "If the score is 80..." etc.

So this sprite is on each slide, but it's MsPepper_25, MsPepper_26, etc. So yeah, a lot of duplicate advanced actions to accommodate the different sprites on each slide.

Is there a way to do this without so much duplication? If so, that would be great. But from what I understand, there's no real way to put an asset on each slide that has the same name.

Lilybiri
Legend
April 5, 2022

Timing for the rest of the project fixed it RIGHT up. I also discovered that project files were being worked from cloud storage, so we moved them locally to work on them.

Thank you so much for your help!


OK. Is it possible to mark at least one answer as being correct? As a moderator I could do it myself, but prefer you to do the marking(s). It is for the sake of other users looking for  answers to similar issues.

Working on projects in the cloud is indeed not recommended at all., but seemed not directly related to the problems you had.