Simulated 3D using 2D sprite...

I have a 16 frame sprite animation of earth that I would like to rotate via dragging to simulate a 3D object. I would like the sprite's x position to remain stationary as you drag your finger over it.

Any ideas to get me started?

Thanks,

GP

so if the user drags form right to left, you want the earth to spin right to left and if the user swipes from left to right the earth spin left to right?

i would not use sprites

i would use for loops

c

Thanks for the response Carlos... on a Friday night no less!

Yes, swipe right to spin right and swipe left to spin left.

I currently have the globe sprite working with the slider widget, but thought a "swipe to spin" would feel more natural.

In lieu of a sprite you say you would use a for loop. Could you please elaborate... movie clip, individual images in a table, etc.?

Thanks Again,

GP

break the sprite into images 1 to 16 - (send them to me) no promises i get something out but maybe done this million times ---

just loop the images instead of a sprite so you can do the current.x less than prev.x then loop backwards... if the other way loop fwd.

c

views:1689 update:2011/11/14 9:16:56
corona forums © 2003-2011