I'm making a quiz game and I'm stuck in this problem.
I have a sprite that works as a button with instances variable that sets the level of the game, the number of questions and the percentage of rigth answers. (level, questions and percentage are their names).
I use this "button" to call every level, changing the level instance variable.
So, sending values to a stage is easy.
The problem is when i have to do the reverse way.
The game stage has a Global Variable tha counts how many right answers the player get.
What I trying to do is: When the game returns to the select stage, the button that called the game stage, receive back the Global variable with the number of right answers.
How do I pick the correct sprite to set the variable?
Thanks in advance.