Hello everybody, I have been getting this annoying error whenever I put anything that has to do with a Reference Point.
This is the error I get: http://gyazo.com/07672812681a81045d0925c87af08c3f
This is my source code:
local background = display.newImage("background.png") -- Clock hands local hourHand = display.newImage("hourHand.png", 152, 185) local minuteHand = display.newImage("minuteHand.png", 152, 158) local center = display.newImage("center.png", 150, 230) local secondHand = display.newImage("secondHand.png", 160, 155) hourHand:setReferencePoint(display.BottomCenterReferencePoint) minuteHand:setReferencePoint(display.BottomCenterReferencePoint) secondHand:setReferencePoint(display.BottomCenterReferencePoint) -- Set clock hands position at start local timeTable = os.date("\*t") hourHand.rotation = timeTable.hour \* 30 + (timeTable.min \* 0.5) minuteHand.rotation = timeTable.min \* 6 secondHand.rotation = timeTable.sec \* 6 timeTable = nil -- Reposition every second local function moveHands(e) local timeTable = os.date("\*t") hourHand.rotation = timeTable.hour \* 30 + (timeTable.min \* 0.5) minuteHand.rotation = timeTable.min \* 6 secondHand.rotation = timeTable.sec \* 6 end timer.performWithDelay(1000, moveHands, 0)
It happens with ANY project period.
It would mean a lot if you guys could help me out with this, thanks!