Hi All,
I am a little stuck here, hope I could get some help.
I am trying to use director class and event.shake to switch between 2 screens. I have used the following code.
local function changeHours ( event )
if event.isShake == true then
director:changeScene("mainEng")
end
end
Runtime:addEventListener("accelerometer",changeHours)
This works to change the scene, but when I try to shake to switch back it does not work. I have tried cleaning the runtime listeners but it still does not work.
Many thanks
Chris [import]uid: 10697 topic_id: 10496 reply_id: 310496[/import]