Can I reference an object by its name only?
I have several different level layouts, each one stored in a separate Text object. Like, text object Stage1 "floor,floor,leftwall,topwall,floor"; text object Stage2 "topwall, floor, leftwall, leftwall, floor"; text object Stage3 "topwall, topwall, topwall, topwall, leftwall".
Then I have another global variable int gChapter, that I increase whenever I finish some objective ingame.
I wish to have an event where I ask the system to set up the level according to the text stored in one of the text objects. The chosen text object is dependand on the currently set gChapter value.
Something like this:
tokenat("Stage"&gChapter.Text,loopindex,",")
This is driving me crazy. Can't I reference an object just by its name?
Thanks for reading, pls help!