Hi, I use a “char.png” image for the main character of my game.
how can I display a game over message and stop the game if “char.png” fall off the screen? I’ ve tried
_H = display.contentHeight
if(char.y \> \_H) then
local text = display.newText("Game Over",0,0,native.systemFont, 70);
end
and
if(char.y \< \_H) then
local text = display.newText("Game Over",0,0,native.systemFont, 70);
end
but it doesn’t work. Thanks for your help [import]uid: 76800 topic_id: 24818 reply_id: 324818[/import]