Forum Discussion

JonahSharkey's avatar
JonahSharkey
Community Member
4 years ago

Character State Change Causes Flash Frames

Hi all,

I didn't see a fix for this, so I'm putting it out to you heroes to help. I'm creating a story where the user starts by selecting a character they use for the rest of the module. I'm using a variable to set which character is shown on a given slide. If I choose the second character, unfortunately it briefly flashes the first character. Can someone take a look and let me know what they think?

Best,

Jonah

3 Replies

  • Hi, Jonah,

    Unfortunately, it appears that the character object needs a brief moment of "Normal" before it changes to "Daniel." 

    The fix is to make "Normal" blank, and put Jayla in her own custom state. I did that on slides 1.3 and 1.4 of the attached copy. That solves the flashing problem. 

    FYI: I made the "Normal" state 100% transparent, so there's still something there. It's just invisible. 

    • JonahSharkey's avatar
      JonahSharkey
      Community Member

      Thank you Judy! It's strange that is the case, since none of the guides that I've seen on this kind of logic show that, but it is what it is. I appreciate your help!!!

      • JudyNollet's avatar
        JudyNollet
        Super Hero

        You're welcome. 

        FYI: The program may need to "unhide" the object before it changes the state. That's my best guess for why the Normal state briefly flashes before the program advances to the other state.

        Quick tips:

        • Always keep something in the Normal state. For example, I always type a space or two in the Normal state for a text box or shape when I'll otherwise be using its custom states. Or, as with your example, keep a 100% transparent object/picture.
        • I'm a big proponent of good naming conventions that "match" names for buttons, objects, layers, variables, etc.. They really help with troubleshooting. So, to use your example again, I'd rather change the state to "Jayla" when the variable = Jayla than change it to "Normal."