Hi all
I might be a moment of stupidity but I'm trying to figure out how to do the following: (this is just sample code):
if((a==b) || (b==c && c==a)) {
MoveSprite();
}
I tried doing this in C2 - here is a screenshot:
<img src="http://i.imgur.com/D5Chp.png" border="0" />
which is actually the equivalent of:
if(a==b){
MoveSprite();
}
if (b==c && c==a){
MoveSprite();
}
The problem is that now when a==b and c==a, C2 fires on both conditions, as opposed to my one condition in the sample code. What I want to do is say "if the first condition block OR the second condition block", but since I can only do OR statements on single condition blocks it doesn't cover both cases.
Ideally I would want to do something like this:
<img src="http://i.imgur.com/33pMJ.png" border="0" />
Is there a way of achieving this? I feel like I must be missing something obvious or else people like Arima with their 10 bazillion event super-games would have run into this a while ago <img src="smileys/smiley17.gif" border="0" align="middle" />