How to move a finger sprite in a specified manner, for tutorial?

Hi,

I want to make a tutorial for my game that shows a finger and it appear on an object and then move to another position and then fade away.

From my experience with Corona so far, the only way I thought was to use transition.to, but even though not sure how to use it for this purpose.

Thanks.

With Beetle Bounce, I did exactly that.  I use transition.to, and onComplete, remove it (or fade it out) from the screen.

Say, myfinger is a display object.  You want it to move it to newX from where it is horizontally in 2 seconds, and when it finishes moving, you want doThis function to execute (and doThis function would have remove or fade out instruction for myfinger):

transition.to( myfinger, {x=newX, time=2000, onComplete=doThis});

Naomi

Edit:  BTW, if you are thinking of moving the finger along a curved line, I haven’t done it, so I don’t know.  You’d want to look into moving an object along some bezier curve I suppose…

With Beetle Bounce, I did exactly that.  I use transition.to, and onComplete, remove it (or fade it out) from the screen.

Say, myfinger is a display object.  You want it to move it to newX from where it is horizontally in 2 seconds, and when it finishes moving, you want doThis function to execute (and doThis function would have remove or fade out instruction for myfinger):

transition.to( myfinger, {x=newX, time=2000, onComplete=doThis});

Naomi

Edit:  BTW, if you are thinking of moving the finger along a curved line, I haven’t done it, so I don’t know.  You’d want to look into moving an object along some bezier curve I suppose…