Hi
I’m using Corona SDK for a school assignment and basing my simple game off a tutorial by J. A. Whye : https://www.udemy.com/game-development-crash-course/?dtcode=Pj2adTk1oopb#/
The game runs fine the first play and you’re able to restart the game if you lose.
But on the second play when you lose it results in this error:
Runtime error
…\castleapp\main.lua:94: attempt to call upvalue ‘gameover’ (a table value)
stack traceback:
…\castleapp\main.lua:94: in function ‘spawnblob’
…\castleapp\main.lua:117: in function …\castleapp\main.lua:114>
(tail call): ?
?: in function <?:498>
?: in function <?:221>
I have no idea why, I’m just a newbie (so my code could look very bad to you sorry) and would appreciate someone being able to help me resolve this problem.
Thanks Stevo