Forum Discussion

PatrickCooper's avatar
PatrickCooper
Community Member
22 days ago

Having an Issue with Character Select showing wrong Character for an instant.

So first time building a character select project. Everything seems good, but whenever I select the Male character, when i need to show characters, the female character shows up for an instant before the male character. 

The female is my default state, so I imagine that is the problem, but I don't know how to fix it. 

8 Replies

  • PatrickCooper's avatar
    PatrickCooper
    Community Member

    Link to view project: 

    https://360.articulate.com/review/content/7357af2e-4ee0-4bbd-ad03-b84740df5dec/review

  • I don't recall encountering this before, perhaps because I'm more likely to have separate characters I hide and show, but I was able to resolve it by changing your character's State trigger to fire When the timeline starts on Character 2 instead of the slide.

    • PatrickCooper's avatar
      PatrickCooper
      Community Member

      Thanks! Both you and Nedim solved my issue! Both fixes work!

  • Nedim's avatar
    Nedim
    Community Member

    Just for the record (not as a solution) this issue is mainly caused by having a Fade slide transition applied. If the transition is removed, the trigger executes as expected and the correct state is displayed.

    If the slide transition is essential, you can apply a very short fade animation to the character (e.g., 0.10 seconds) to preserve the original trigger behavior. Alternatively, you can go with AndrewBlemings-​ solution, which I recommend.

    • AndrewBlemings-'s avatar
      AndrewBlemings-
      Community Member

      Very interesting, I didn't know that. I'll definitely hang onto that information, thank you

      • Nedim's avatar
        Nedim
        Community Member

        Yeah, the same behavior occurs with variable changes set to run when the timeline starts on a slide. When a slide transition is applied, Storyline evaluates default states and variable values during the transition. Only after the transition completes do the slide’s triggers begin executing.

        For example, apply any slide transition and increase its duration to around 10 seconds. Reference a variable that is initially set to False and add a trigger to change it to True when the timeline starts. Preview the slide and open the inspection tool, and you’ll notice that the slide-transition-container receives a transitioning class, which is removed once the transition ends. That’s the point when the slide’s actions and triggers actually begin executing. During the transition, the variable remains False; it only changes to True once the transition is complete.

    • PatrickCooper's avatar
      PatrickCooper
      Community Member

      Thanks! Both you and AndrewBlemmings solved my issue! Both fixes work!

      • Nedim's avatar
        Nedim
        Community Member

        I just jumped into the discussion to add some additional context. Hit the “Mark as Solution” button on AndrewBlemings-​ comment to mark the issue as solved. This will help other members find the solution if they run into a similar issue.