Added: 2 years ago
From: oppcell
Views: 12,437
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (21)

Sign In or Sign Up now to post a comment!
  • this helped me a lot thanks! :)

  • wouldn't it be faster to use a boolean vector,

    and then just set it by index?

  • @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?

  • 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!

  • sweeeeeeeeeeeeeeeeeet

  • Comment removed

  • BEST INTRO EVER

    And nice tutorial! Really helpful :D!

  • 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.

  • exactly what I needed, thank you. I can't wait for the cs5 tutorials

  • can i download adobe flash

  • Just what i needed for my platform game

  • great channel and tutor my friend

    really thx for share

    i subbed

    best regards from brazil

    andré rossiter

  • 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 yes e stands for event. Some ppl use evt - it's the same as event. :)

  • when I try this I get

    "TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@c712b51 to com.MultipleKeysDown.

    at com::Project2()"

  • !!! this is great ,oh yeah so super great :D thx you

  • absolutely outstanding and understandable. Thanks for your contributions to new scripters =)

  • Great Video :)

  • You should have a partnership, you seriously deserve it!

    Great Video :)

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more