- Home /
How do I refer to a .text from a separate scene.
How do I refer to a .text from a separate scene. So the object of the game is to collect as many coins as possible and once you die you will go to a different scene, the "game over" scene. I want the Highscore.text to = the score.text from the previous scene, how can this be done.
Ok so this is how I've been trying to get this to work
"Scene 1"
For example lets say
Score.text = "10"
"Next Scene"
Highscore.text = Score.text
This doesn't give me any errors but also doesn't do anything on the second scene, the Highscore.text just stays blank. Im pretty new to flash so forgive me if I didn't give enough information or did something wrong here!
Your answer
Follow this Question
Related Questions
Input Field Doesn't auto select in a different scene 1 Answer
Display a text for all scenes 2 Answers
How do i create a level lock system? 1 Answer
pre-load multiple scenes but only activate one 0 Answers
Reduce 'Levels' or Scene File Size 1 Answer