I have written a script that will detect if a certain key is pressed using (if.isdown(anykey))
my problem is that this script can only detect a single key press,
i want it to be able detect a two key press like (shift+anykey)
is it possible ????i'v tried every thing a could but no use..please help..thx anyway!!
<< ^^ - Therefore, my description will be detailed when I get to my desktop.
_____>>
Just use actions my friend!
All you have to do is get into your frame actions, and select: "when key pressed"... this will write the action script for you.. saving u the hasstle of playing with your own written actions.
I'll get backto you with details when i get to my desktop!
According to the Flash 5 Bible, "Multiple key combinations are not supported.This rules out diagonals as two-key combinations in the classic four-key game control setup. It also means shortcuts such as Ctrl-S are not available."
Originally posted by BrainTea According to the Flash 5 Bible, "Multiple key combinations are not supported.This rules out diagonals as two-key combinations in the classic four-key game control setup. It also means shortcuts such as Ctrl-S are not available."
Cheers,
Bryan T
I have a .fla right here right now that allows you to control a simple dot around the screen with 1 key (left right up down) or 2 keys (up+right up+left down+right down+left) to make it go on a diagonal.
Would you care to go one step further to help -amjad_ghost- by explaining the process one would use to accomplish this task, or just paste your script?? Thx.
just use two separate movie clips with 'on clip event' handlers. 1 clip has the first 'key.isDown' and the other is on the second clip and detects the second key. Works for me.