Have a new problem with the timer script
When I run the project locally, everything looks fine.
When I run it on an iPhone 6 with last iOS version, it still works fine but I have the following error message in the console when the timer is completed:
ERROR:SCRIPT: invalid key to 'next’
stack traceback:
[C]: in function '(for generator)'
main.timer:45: in function 'update’
laser/laser_controller.script:111: in function <laser/laser_controller.script:110>
The update function of my script has only this:
function update(self, dt)
timer.update(dt)
end
If I run the game on older devices with iOS 7, they freeze in that same moment (when I get the error log on other devices).
Any idea?
Don’t know if it can help, but I’m using two timers (the second starts when the first one is done) and I get this error message when the second timer is done (and that point, the first timer should start again).