I am new user of Corona and i am developing test game. I need to rotate image, when i slide my finger on screen. So when i slide my finger somewhere on screen to right, picture rotates to right. And when i slide to left, it rotates to left. And finaly image must not rotate too much, so when it has rotated to right 30 degrees, rotation stops. And image has to rotate that many degrees, how far i slide my finger.
Might sound little bit complex, but please help me.
And here is my code:
[code]local lauta = display.newImage (“lauta.png”)
lauta.x = 240
lauta.y = 650
physics.addBody(lauta, “static”)[code] [import]uid: 18445 topic_id: 6562 reply_id: 306562[/import]
I just needed to edit code little bit, yes i am completely newbie yet.