September 13, 2018 at 10:55 am #406982
Is there a way to run an action group AFTER a move action completes?September 13, 2018 at 11:28 am #406992
Math NotermansMember93 pts@mnotermans5114
No easy way to do with just plain Lectora actions. Your best bet is doing the move with GSAP. GSAP has a command OnComplete for its timeline. In fact in a TweenMax timeline you can add sequences of actions after each other,,, they all wait for the previous to end… check my portfolio and samples and you sure find a suitable sample.
Checking my own portfolio here some samples that are usefull to solve this.
If you know the position of an element…well you can trigger whatever action needed when the element is higher then a certain amount…
This one does show quite well the possibilities of a sequence with TimelineMax for GSAP
Kind regards and good luck,
September 13, 2018 at 1:20 pm #407011
- This reply was modified 1 week, 2 days ago by Math Notermans.
Darrel SomozaMember188 pts@Klaatu
Well, I’m making assumptions because there’s no sample included with your post. If you want to initiate a move and then, when it completes, automatically fire off an action group it’s extremely simple. Lectora actions fire in sequence. Add a run action group after the move action.
I added a delay before the action group fires so that you see it indeed happens after the move finishes. without a delay it will look simultaneous.
If this is not what you meant, please elaborate and include a sample.
Attachments:September 13, 2018 at 7:07 pm #407047
Cam PhillipsMember10 pts@_
It would be GREAT if Lectora actions had a checkbox ‘Wait until previous action complete’ (or even a dropdown menu ‘Wait until <X> action complete’. Best would be some kind of timeline (like Premiere, AfterEffects) to show visually when an action in a group will fire and how long it will run for.
Setting delays can get extremely fiddly, especially when you have fade transitions with varying speeds and a bunch of MoveTo actions thrown in the mix. It gets even worse when you need to go back and add something to the middle of of a long animated sequence and have to re-time the values!
I totally agree.
Maybe add a “THEN” condition next to the “IF” and we could string tasks within an action.
September 14, 2018 at 11:27 am #407106
- This reply was modified 1 week, 1 day ago by Robert Beutel.
Darrel SomozaMember188 pts@Klaatu
Delays are not necessary. By his question, Rob just needed to be pointed to the run group action and to be reminded that Lectora actions are sequential.September 14, 2018 at 1:18 pm #407111
@darrel – Your insight was very much appreciated. Despite the fact the actions are sequential, they were happening way too quickly. I needed the move action to happen and then, after it stopped, the next action would run. Unfortunately, I have several buttons launching different move actions with varying distances. That along with the users browser or computer/bandwide speed means the delay would need to be different for each.
This is how I solved my issue:
Math provided a useful piece to the puzzle. I used his idea to track the location of the object that is being told to move. When one of the buttons are clicked the target location is set and the object is told to move. I then created a looping action (with a 0.1 delay otherwise you get an “out of stack space” error) that tracks the object position and stops when the target position is reached. At that point the next action group runs. When I can find time I will created a simplified version without the confidential info.
@mnotermans – Thank you but your avitar still freaks me out.
You must be logged in to reply to this topic.