Hi,
does anyone know how to create an if statement like this:
-2conditions
-1 is a normal condition
-2 is a condition that, if it’s fulfilled, the “if” script isn’t executed
(basically it’s just thzt the second must say " if that doesn’t hitTest)
OK, maybe that wasn’t very clear. I’ll explain it this way:
I have an if statement , with 2 conditions, simplified:
if (condition1 AND condition2)
blablabla
condition1 is a "if Key.isDown…"
condition2 is a hitTest of 2 MC’s
Now, I want the if-statement to execute the “blablabla” stuff if condition 1 is true ( the key is down) and if there is NO collision.
It’s for something like this: you control an object, and there are obstacles in the way. If you drive against them, you cannot pass and you must go around.