There IS a way to get your keys to get detected along with other keys with the help of Boolean Variables. I tried it out with Run, and i got it. Anyone need the code?
could you please make a tutorial on making the hero attack in both directions!!!? i tried multiple times to do it myself but he only attacks one direction? :( plz help!
Wouldn't it be better to just set keyspressed[e.keyCode] to 'true' and 'false' each time and then return keyspressed[keys]? I don't know how actionscript handles the 'in' keyword but I guess it would iterate over the entire array. Thus, you're doing the check in O(n) instead of O(1) which it should be. Also, I guess that delete actually removes the references from the associative array, which is considerably slower than just changing a boolean.
Thank you so much! Now i can convert my ActionScript 2 projects to ActionScript 3!! I have one question? are you using "e:" instead of "event:? I don't know what e is and never saw e in ActionScript 2.
this helped me a lot thanks! :)
TheDarkGhoul 1 month ago
wouldn't it be faster to use a boolean vector,
and then just set it by index?
coolguyflex 9 months ago
@coolguyflex Oh sorry, i forgot. You can't set indexes like that in vectors.
Well a boolean array then, wouldn't that be more efficient?
coolguyflex 8 months ago
There IS a way to get your keys to get detected along with other keys with the help of Boolean Variables. I tried it out with Run, and i got it. Anyone need the code?
segavagrant 10 months ago
could you please make a tutorial on making the hero attack in both directions!!!? i tried multiple times to do it myself but he only attacks one direction? :( plz help!
devanferreira 1 year ago
sweeeeeeeeeeeeeeeeeet
beatboxsimchayaffa 1 year ago
Comment removed
theStoneMiner 1 year ago
BEST INTRO EVER
And nice tutorial! Really helpful :D!
KeihyL 1 year ago
Wouldn't it be better to just set keyspressed[e.keyCode] to 'true' and 'false' each time and then return keyspressed[keys]? I don't know how actionscript handles the 'in' keyword but I guess it would iterate over the entire array. Thus, you're doing the check in O(n) instead of O(1) which it should be. Also, I guess that delete actually removes the references from the associative array, which is considerably slower than just changing a boolean.
Timbe1987 1 year ago
exactly what I needed, thank you. I can't wait for the cs5 tutorials
Raluk54 1 year ago
can i download adobe flash
TheTitiblaster 1 year ago
Just what i needed for my platform game
coolguyflex 1 year ago
great channel and tutor my friend
really thx for share
i subbed
best regards from brazil
andré rossiter
tedboy1977 1 year ago
Thank you so much! Now i can convert my ActionScript 2 projects to ActionScript 3!! I have one question? are you using "e:" instead of "event:? I don't know what e is and never saw e in ActionScript 2.
ShadowErocos 1 year ago
@ShadowErocos yes e stands for event. Some ppl use evt - it's the same as event. :)
Seryosin 1 year ago
when I try this I get
"TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@c712b51 to com.MultipleKeysDown.
at com::Project2()"
Vicioussama 2 years ago
!!! this is great ,oh yeah so super great :D thx you
Bratgeraet1 2 years ago
absolutely outstanding and understandable. Thanks for your contributions to new scripters =)
timkim543 2 years ago
Great Video :)
BMStudiosProduction 2 years ago
You should have a partnership, you seriously deserve it!
Great Video :)
brow1994 2 years ago