Forum Discussion

MarianaEscrzaga's avatar
MarianaEscrzaga
Community Member
3 months ago
Solved

Motion Paths Issue

Hi!

I'm currently working on a project that has a character. This character has an entrance motion path, but then, it has 4 more.

The learner has the option to choose between two alternatives (the two hot spots), and depending on which they click first, the character will follow one or another motion path. The first of the motion paths, despite the option they select, seem to work. However, the second one seems like the character is starting to move from a different starting point, even if I have aligned the start and end points of both motion paths that are connected, and have played with the relative starting point. I think I'm definitely missing something that is right in front of my eyes, but I cannot figure it out just yet.

This should be an easy one to solve hehe, so I thank you in advance. The project is attached.

  • DanielCañaveral's avatar
    DanielCañaveral
    2 months ago

    Happy to hear it'll work out for ya. To create the "Face Left" state of your character, I created a custom state, cut (Ctrl+X) your character image, and then pasted her back in. Doing this made it possible to access Rotate options. As far as why your original motion path was a little choppy...it may have to do with having the "In & Out" easing in place:

     

8 Replies

  • Hi Mariana. Ok, from what I understand, you want the character to enter the stage via a motion path (Motion Path 1). You then want to present the character with a choice: take the Rules path (Motion Path 2) or the Restrictions path (Motion Path 3). Once the character completes one of these paths, the user should advance to the next slide. Is all that correct?

    If so, I would utilize layers to contain Motion Paths 2 and 3, as I've demonstrated in the attached project file.

     

    • MarianaEscrzaga's avatar
      MarianaEscrzaga
      Community Member

      Hello Daniel, and thank you so much for helping out.

      The thing here is, the learner needs to go through BOTH paths at some point, but I want them to be able to choose whichever first. I love what you did with the scribble motion path, by the way!

      I removed the other scenes, but the idea is that when the learner clicks on one or another, it directs them to different slides/scenes, and then they will be able to come back.

      Therefore, what I thought was:

      1. If the learner chooses rules first, the variable Restr1 will become true. The character will go through the motion paths "rules" and then "restrictions" (the latter will only work if Restr1 is true)
      2. If the learner chooses restrictions first, the variable Rules2 will become true. The character will go through the motion paths "restrictions2" and "rules 2" (the latter will only work if rules2 is true.

      The scenes will open after the motion paths are completed. 

      However, my issue is, the motion paths mentioned in 1 and 2 seem to start at a different starting point, making the character "bounce" or change positions. Meaning for some reason, motion paths restrictions do not end where rules ended; and rules 2 do not end where restrictions2 ended.

      I hope this makes sense!

  • Nedim's avatar
    Nedim
    Community Member

    I think you should consider adding more variables to manage each path option more effectively. You could use separate variables for the following transitions:

    1. Initial to Rules
    2. Initial to Restricted
    3. Rules to Restricted
    4. Restricted to Rules

    Alternatively, you could use a single text variable (e.g., Direction) that dynamically updates based on which button (Rules or Restricted) has been clicked. For instance:

    • When the Rules button is clicked, the Direction variable is updated to "InitialToRules", and the backpacker is moved to the Rules point if Direction equals "InitialToRules".
    • When the Restricted button is clicked (moving from the Rules point to the Restricted point), the Direction variable should change to "RulesToRestricted", and the backpacker is moved to the Restricted point if Direction equals "RulesToRestricted".
    • Finally, when transitioning back from Restricted to Rules (clicking the Rules button), the Direction variable is set to "RestrictedToRules", and the backpacker moves to the Rules point if Direction equals "RestrictedToRules".

    By using this approach, you can easily control the movement of the backpacker based on the current state of the Direction variable, simplifying your logic and making it easier to manage the transitions.

    For the motion paths, it’s important that the starting and ending points (x, y) are perfectly aligned. Each new path should begin exactly where the previous one ended. In other words, the ending point of one path should match the starting point of the next path. You don’t need to use relative starting points for this setup.

    See the attached example. I haven't experimented with motion paths as much as with variables and functionality.

    • MarianaEscrzaga's avatar
      MarianaEscrzaga
      Community Member

      thank you very much :) this didn't solve my original question but it showed me a different way to do things.