Comment: you don't need to duplicate your code in every eventsheet. Put common code in a separate eventsheet and Include it in the per-layout eventsheet.
That's what the CSV plugin does:
The Array is global by default, so the data persists across Layouts. You can make a JSON object and load it, but it's not pretty. You can look at the CSV plugin also.
Look at the Timer behaviour.
Can you post a CAPX?
That's fine, but Layout2EventSheet needs to invoke whatever the code is in SetTextEventSheet to set SpriteFont1. Typically done in On start of layout. What is the trigger that calls SetTextEventSheet?
When are you setting the text? It needs to be set on Layout2's event sheet. Layout1 won't affect Layout2's objects.
You are doing "Reset global variables to default" in event 2 of "level1". This is setting currentLevel to 0 each time.
Develop games in your browser. Powerful, performant & highly capable.
Add an Else after the Overlap.
No, it's not. The easiest thing to do is to build a small sample array in C2 with a few elements, then dump out the JSON to see the format. Then just follow the same format for your real data. It should then work.
Someone wrote a plugin a while ago:
Event two is a single statement! Break them apart. Or keep one and use Else for the other.
Member since 28 May, 2012