KevinJardine
10 months agoStart Partner
Sublevel name?
I hope that this is an easy question.
I want to get the name of the current sublevel.
When I run this.world.name.get() in a sublevel script, I just get the name of the parent world. So how do I get the sublevel name? I need this for scoring in my game.
My world allows multiple sublevels to be loaded. So I'm not sure that a global broadcast or variable would work. I basically need to find out what sublevel a script is running in.
I think I may have figured out a hack. The scripts are all attached to triggers and since the sublevels all have fixed positions, I can use the trigger positions to determine what sublevel they are running in. Works for me, but something like this.sublevel.name.get() would be easier.