1.)
In this tutorial I will show you how to embed conditions
into conditions.
-----------------------
-----------------------
2.)
In this tutorial you need the following:
-Actions Panel
-2 or 3 symbols
-Your Properties Panel
3.)
Sometimes
when designing a game, you need to press keys, but you
don't always want them to execute an action when its
pressed.
you can specify exactly when you want something to happen
by embeding an if statement inside of an if statement.
-----------------------
-----------------------
4.)
This
time name both of the symbols to get ready for action,
in this case i named 1 "toad" and the second
one "ghost".
-----------------------
-----------------------
5.)
Then you can put this
code in either movie clip, or you can put it in a seperate
actionscript symbol, and you get the same result.
-----------------------
-----------------------
6.)
When you hold down the
UP Key, and When the 2 symbols are colliding, then a
message will appear when you test it that says the String
"Hello World".