Move, pause, continue moving an image

Hello,
I have a large png image (10000 or so pixels wide), that moves slowly from right to left on the screen, displaying a row of dinosaurs.
Now I would like to stop and later continue the movement.
The image is being moved by a “move to” action wit a duration of 90 seconds.
But I see no way of stopping the movement and then resuming it at the position it was stopped.
The image is located in a group collection.
Any ideas? Thank you very much!

Hello @marnold,

Here are the steps I used to accomplish this:

  1. Add a Countdown interface asset to the experience

  2. On the move action bind the Animation duration to the Remaining duration in seconds on the Countdown

  3. On the trigger you are using to stop the movement add an action to pause the Countdown and a move to action on the image, binding the X and Y to the X and Y of the image. Doing this will keep the image where it is stopped.

I have also included an example experience so you can see how it works.

Move and Stop.zip (6.2 MB)

Note: You will want to include an action to reset the countdown when ever you want the image to start at it’s original location.

Thanks,
Ryan

1 Like

works fine, thank you !

Hello rdriscoll,
now I have found an issue and cant find a solution or even a reason for it.
The collection moves from left to right a it should. But once in the movement there apperars an ugly “jump” of some 100 pixels and then it moves on smoothly as it should.
My explanation was that there were too many images in the collection, as the experience has become rather complicated and big.
Now I deleted all interface assets, collections and everything except the coutdown timer and the moving collection and even replaced the images by simple rectangles.
The “jump” still appears in the same inpredictable way: after 22 sec, after 45 sec, after 36 sec. Once every time I run the rudimentary experience, but randomly in time.
I cannot think of an explanation for this behavior.
Has anybody ever observed something similar?
Ideas appreciated!
Greetings
Micha

@marnold ,

At this point I would suggest reaching out to us via our support channel. On there we will ask you to share your experience so we can see and test to determine what is happening.

Thanks,
Ryan

1 Like