Animating object(making how to play)

Hey everyone,

I want to make a animated finger that would show player how to play. It should follow the path.

I’ve never done anything like that in Corona. I have idea in mind how I could do this but it’s so much time consuming and definitely worst way to do such a thing. Is there any way to make a path for object? I was looking at some example but it wasn’t what I wanted to do.

Anyone?

You could use a table of x, y locations for each point you want to move the finger to and then use a transition.to() API call to move to each one.  when the transition completes, call a function that gets the next x, y and fire off another transition.  Or you could use use the delay feature on transitions and just queue them up:

transition.to(finger, {time=500, x = path[1].x, y = path[2].y})

transition.to(finger, {delay=500, time=500, x=path[2].x, y=path[2].y})

transition.to(finger, {delay=1000, time=500, x=path[3].x, y=path[3].y})

Or something like that.

Rob

Yeah that’s it, I think I saw it somewhere before. Thanks for help!

Anyone?

You could use a table of x, y locations for each point you want to move the finger to and then use a transition.to() API call to move to each one.  when the transition completes, call a function that gets the next x, y and fire off another transition.  Or you could use use the delay feature on transitions and just queue them up:

transition.to(finger, {time=500, x = path[1].x, y = path[2].y})

transition.to(finger, {delay=500, time=500, x=path[2].x, y=path[2].y})

transition.to(finger, {delay=1000, time=500, x=path[3].x, y=path[3].y})

Or something like that.

Rob

Yeah that’s it, I think I saw it somewhere before. Thanks for help!