Hello,
I’m trying to make a game using corona and I’ve run into a minor problem that I’m not sure how to fix.
When my game reaches the end (lives = 0) it will use the settings class to see if their current score is higher than the highscore and if it is, it will store it. Then I call the director class to take the user to the game over screen. The code is as follows:
if lives == 0 then
local highScore = settings:getVar("score")
if score \>= highScore then
settings:setVar ("score", score)
end
director:changeScene("gameover")
end
When I simulate the game over condition, it works fine but I have tested this on two separate android devices, one on 2.3.4 and the other on 2.2 and for both it simply freezes where it should be going to the gameover screen.
Any suggestions? Thank you. [import]uid: 50805 topic_id: 14057 reply_id: 314057[/import]