Hi,
I have troubles passing score to other, not direct scene. I’m familiar with globals and modules, but exactly in this case I can’t adjust none.
I have game scene where all action going and after loss an “end game” scene occurs to witch score are passed with composer.setVariable. Here in “end game” scene I am saving and loading score with JSON witch allows me to show best score right away after loss. And I have scene “best score” and want to have access to saved best score in “end game”. Scenes are not direct to each other so I’m not using set get variable.
I tried _G.scoresTable = {} in “end game” scene witch allows access score with _G.scoresTable[1] in “best score” scene but after launching game “end game” must be exhausted first to have that score shown in the “best score” otherwise result is nil. With attempt to set module inside “end game” scene code I had zero result either.