Hi There,
I am testing out some things for a project and I want to use Vanilla JS for game logic but I cannot construct function script to return the value I have set in globalThis.
I am setting the variable on Layout start but when trying to set the text on a sprites on created event it is undefined and not setting the text.
If I console.log while after it has all loaded the variable content shows as expected.
Can someone point out what I am missing.
Many thanks