I've already searched using the search button to find the answer but I couldn't find it.
I'm really new to flash, but I want to know how to do this:
There is this portal, in which takes you to the next screen IF you press down a key, say SHIFT.
However, I only got
Which would immediately send 'hero' to frame three as I touch it.
What I want however, as explained, was that my 'hero' would only go to frame three IF SHIFT was pressed. So I tried-
Since I typed this on here without Flash's help, it may look a bit funny, but the code I inputted was the same, with proper formatting, no errors.
However, it didn't do a thing for me- for some reason, I wasn't even able to go to frame three with or without the keypress of SHIFT.
So, as a wrap up: I am trying to find a way on how to make 'hero' go to frame three when/if there is a hitTest with 'portal', but only when I am pressing a certain key, like SHIFT. The script above went into the 'portal' actions. I am not sure if I put similar script into 'hero' and hitTest'ed it with 'portal', and if I would get better results?
Thanks for reading this, and another big thanks if you help me as well!