Author Topic: Looping moving element  (Read 3032 times)

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Looping moving element
« on: July 12, 2017, 01:31:58 PM »
I'm wondering if there's a way to have an element enter the screen from the left, slowly move until disappearing into the right, and then start again. Essentially the use I'd give it is something like what you see on this picture (to have all the covers moving on a loop in the background):


Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Looping moving element
« Reply #1 on: July 12, 2017, 02:04:43 PM »
A simple onIdle animation over the x coordinate should do the trick. onIdle automatically starts again once it's complete.

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: Looping moving element
« Reply #2 on: July 13, 2017, 01:02:50 AM »
Excellent! Thanks.