Simple rotate system

Hi everyone :)

i am creating some object and now i want to rotate this object 360º and drag the same object, like feed me oil objects, on my code i can drag a object very well, or can rotate 360º but not the same object, i want make like feed me oil, need some example about it: i will rotate a circle and this circle will rotate the object.
i really need some help to join this two parts

Thanks

Hey Andre.

I'm not sure I fully understand what you mean.

Do you mean you want to rotate Object1 and have Object2 match its rotation?

If so it would simply be;

object2.rotation = Object1.rotation

Or do you mean you want to drag Object1 and have it rotate around as you drag it?

I can post some drag and drop code which rotates an object using buttons, (left and right) and rotates an object on the screen if that would help, but I'm not sure that's what you're asking for.

Let me know.

Thanks

thanks for the help spider_newgent.

i need a simple example, some like this drag and rotate system of objects, see

http://www.youtube.com/watch?v=vPzJ1__LVaM

views:1369 update:2011/11/10 9:30:09
corona forums © 2003-2011