Forum Discussion

JeroenVerhoeckx's avatar
JeroenVerhoeckx
Community Member
6 months ago

How to move a rectangle (group of objects) up and down?

Hello Storyline developers,

In the attached slide I want the move 'Group 1' up and down by a click. I already created two motions paths, but only the first one is executed. So 'Group 1' moves to the top, but it doesn't move to the bottom. How can I do that?

Related to this question: when I click on 'Group 1' only 'Motion Path 1'  is shown. How can 'Motion Path 2' be made visible? Is there a location in Articulate Storyline where I can see all Motion paths and there settings?

 

Thanks in advance!

  • Nedim's avatar
    Nedim
    Community Member

    In the first trigger, the "else" statement will never execute. You should modify your top two triggers as follows:

  • Hello Nedim,

    Thank you very much: it works!!!

    To be honest, I don't understand why your version works and mine doesn't. The structure/logic of the triggers must be different then I thought. I have programmed a lot in the past, so I should understand it. I'm going to read the documentation to understand what's the difference between my reasoning and the reasoning of AS.

    Many thanks!!

  • I will use the code provided by Nedim, but I just don't understand why my code (see attachment/image) doesn't work. What's wrong about it?

    (the start value of 'going_to_the_top' is true)

  • Hello Nedim,

    Thank you very much for your explanation! It's very clear! Your are right: my mistake was indeed that I should have used a toggle instead only setting the variable 'reached_top' to true. The interface of Articulate Storyline is a bit strange, but I slowly get used to it!