Cross-Browser.com

X Library Forums

You are not logged in.

  • Index
  •  » X Library
  •  » [xAnimation] move element to a sequence of points

#1 November 23, 2009 12:56:13 am

ap_prog
New Member
Registered: November 23, 2009
Posts: 4

[xAnimation] move element to a sequence of points

I'm using xAnimation.line to move an element to a new point on the screen. Its working fine. What I now need to do is to move the element to a number of different points with a specified pause at each point. Unfortunately the only way I've come close to doing it is by creating multiple objects - its a bit of a mess.

Is there a way to use one object and pass a series of points to it (rather than just one)?

Andrew

Offline

 

#2 November 23, 2009 11:16:15 am

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 789
Website

Re: [xAnimation] move element to a sequence of points

Hi Andrew, Welcome to the forums!

I put together (very quickly) a demo which shows one of the many ways that this could be done. As you'll see, the "pause" is just another animation where the target position is the element's current position - LOL. I'll be thinking about improving this.

xAnimation Sequence Experiment

Thanks! smile

Offline

 

#3 November 23, 2009 6:02:02 pm

ap_prog
New Member
Registered: November 23, 2009
Posts: 4

Re: [xAnimation] move element to a sequence of points

Thanks Mike, It was just what I was after.

Andrew

Offline

 
  • Index
  •  » X Library
  •  » [xAnimation] move element to a sequence of points

Board footer

Powered by PunBB 1.2.15
Copyright © 2002–2005 Rickard Andersson

Expand Restore Select Format Eval Load