hi there, recently im trying to figure out how to show up something from other lua page. Basically in game.lua i have score number and i want to show it up in gameover.lua so the player would know how good his score is after the character dies.
I learned much from this simple youtube video about corona:
http://www.youtube.com/watch?v=WX1Swovbhms
but i simply couldn’t implement it to my game. not sure why…
in my gameover.lua i have this code:
local scoreText = display.newText ("Your Score Is: ", 75, 150, Arial, 20)
local scoreNumber = require("game")
scoreNumber = score
scoreNumber.x = 100
scoreNumber.y = 35
Im sorry if it sounds like a stupid question but can you tell me how do i “pull” the score number from game.lua (which is called “score” there) to be seen in gameover.lua? [import]uid: 114765 topic_id: 24323 reply_id: 324323[/import]