I have the Score text in my "Layout Game" ; how can I put it into my "Game Over" Layout?
I've tried to do it and just shows Score: 0 (but the one in the "Layout Game" works perfectly. Help please?
could you show the events you are using to do this?
could be as simple as not using a global variable, but without knowing how you set it up there's no way to be sure..
i will try to demonstrate as simple example
layout a (player touch the coin update score and show it) and when go to next layout the score is shown ... ok
player on collisions with coin === coin destroy , add 1 to score (global variable) , set text box score to "" & score ( global variable)
on start of lyout === set text to "" & score ( global variable)
if you do like that , it will work
I did the same of the video:
Seems like you didn't do exactly the same as in the video, because in the video it works..
Like I said, without seeing your capx and/or events we can only guess...
Develop games in your browser. Powerful, performant & highly capable.
Thankyou very much littlestain now it works; something was wrong with the text, now it works perfectly.