Hello, Ive been trying to create a game where a lot is happening at once and there’s an exclamation mark that indicates where needs to be tapped.
What im wanting to happen is that the arrow (“pointer” in code) rotates properly around the exclamation not just kind of work and then randomly keep rotating. Ive included both images im using and a link to a gif I made to help show what the issue im having is. Also the more I move the arrow (“pointer” in code) the more it rotates, so it pretty much just spins
Gif Link : http://imgur.com/0XohFmV
Any help would be much appreated
Many Thanks
pointer = display.newImage("arrow.png") -- Might had fixed it pointer.x = centerX pointer.y = 40 pointer.anchorY = 0.5 -- Anchor point idk if working --------------- pointer.anchorX = 0.5 --[print (exclamationMark.x) pointer.rotation = exclamationMark.y pointer.rotation = exclamationMark.x transition.to(pointer, {rotation=rotateValue, time = 250, transition.inOutCubic}) --]] --[[if exclamationMark.x \> width/2 or height/2 then pointer.yScale = 1 else pointer.yScale = -1 end pointer.rotation = exclamationMark.x else pointer.rotation = exclamationMark.y----------------------- end --]]