Expression Editor
![azimpact](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I'm trying to keep my rules down and am wondering is there a way to do a OR in the expression editor.
For example, I have 3 bad guys on different locations on the screen and some higher than others so they set their own X and Y.
My good guy uses (game.BadGuyY) + (1/2*(self.size.height) -3) which allow him to jump and kill the bad guys.
Each badguy has their own x and y value.
In the PHP world, I would use || to specify OR so my rule would look like this:
(game.BadGuyY)||(game.BadGuy2Y)|| (game.BadGuy3Y)+ (1/2*(self.size.height) -3).
Is there an a expression for the editor to use for the || OR value in the above sample.
I've tried using || and it don't work.
For example, I have 3 bad guys on different locations on the screen and some higher than others so they set their own X and Y.
My good guy uses (game.BadGuyY) + (1/2*(self.size.height) -3) which allow him to jump and kill the bad guys.
Each badguy has their own x and y value.
In the PHP world, I would use || to specify OR so my rule would look like this:
(game.BadGuyY)||(game.BadGuy2Y)|| (game.BadGuy3Y)+ (1/2*(self.size.height) -3).
Is there an a expression for the editor to use for the || OR value in the above sample.
I've tried using || and it don't work.
Comments
There is a collide rule that will cancel out the other rules.
I should of put that in my first post that the rule plus a collide with the actor rule are what triggers it.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Not the way I wanted to go because it does add more rules instead of handling it with one expression, but it works.
Thanks!