Hello Everyone, I have one hand sitting over another hand. They are two different objects. I want the top hand to rotate when it throws an object. Then upon completion of throwing the object I want the hand to rotate to its original position. Any help would be great and this is what I currently have…
[code]
local function shootStar( event )
star = display.newImage(“images/Lvl_4/shuriken.png”)
star.name = “star”
star:setReferencePoint(display.TopCenterReferencePoint)
star.x = display.contentWidth * 0.5
star.y = display.contentHeight
physics.addBody(star, “dynamic”, {density=1.0, friction=0.5, bounce=0.0, radius= 10})
star.isBullet = true
star.isSensor = false
lh:rotate(-45)
transition.to( star, { time=1500, y = 0 , onComplete = rotateHand()} )
–star.collision = onCollision;
–star:addEventListener(“collision”, star);
end
function rotateHand(event)
lh:rotate(45)
return lh
end [import]uid: 49863 topic_id: 23065 reply_id: 323065[/import]