>
> Is there a spot to implement Global Variables? I'd like to have a running tally of each "Enemy" in the game, so that when it's down to 0, you win the game.
>
When you go to select your objects, for actions and such, choose the system object. It has global variables. Just make an action. System-Set Value
For this particular case though, unless you don't really have all those enemies there, are you're making like a wave of enemies and behind the scenes you're creating them offscreen or something, There is actually a System expression that counts objects CountMatching(objectname). it counts the objects currently picked, so if you don't have any type of picking condition before you use that expression it will just count all the objects of that type in the layout
[quote:3mb7a0r8]What's a good way to do a transition between 2+ layouts? Can you do this with 2 doors, 1 in each room to take you into the other? If so, how best would this be accomplished?
I've never worked with multiple layouts other than quick experiments so I'll leave that one to someone else
[quote:3mb7a0r8]Sometimes my character or one of the enemies will be sent outside of the room, how do I fix this neither of us can leave the layout? Also, sometimes the physics will get wacky and when an enemy pushes me up or down through a platform I teleport through it, any method to alleviate this issue?
first question is do you mean physics like the Physics behavior? or just the general sense of the word physics and you're using the Platform behavior? if physics behavior what actions are you using to set the speed or strength of the enemy? If platform, what actions are you using to simulate pushes?
1. Awesome, that CountMatching works perfectly! Now when all of them are dead, you get the You Win text!
CountMatching("Enemy") <= 0: "Set text to "YOU WIN""
3. Essentially, the enemies and myself have the attribute "Solid" and no physics behaviors. It seems to work fine, except for the teleportation.