Can I use the expression editor as the attribute browser?
OK, here's my problem:
I have an actor in each scene that changes scene.level to game.level (sets the current level as a global attribute). When the player has finished the level, and gone back home (when the two actors collide) I want the global boolean attribute game.passed("game.level") set to true.
So--if you're playing level 13--and win--then game.passed13 becomes true.
But I can't use quotes in the attribute browser--only in the expression editor. What I mean is, I have to specify what attribute I want set to true--I can't make an expression to figure out what level the player is on, then change that level's "passed" attribute to true.
Is there a workaround? Do I have to go into each scene and specify it?
I have an actor in each scene that changes scene.level to game.level (sets the current level as a global attribute). When the player has finished the level, and gone back home (when the two actors collide) I want the global boolean attribute game.passed("game.level") set to true.
So--if you're playing level 13--and win--then game.passed13 becomes true.
But I can't use quotes in the attribute browser--only in the expression editor. What I mean is, I have to specify what attribute I want set to true--I can't make an expression to figure out what level the player is on, then change that level's "passed" attribute to true.
Is there a workaround? Do I have to go into each scene and specify it?