A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [MX04] Help with controls?

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    64

    [MX04] Help with controls?

    I can't seem to figure out how to get letters for codes..

    I want Z to be a certian attack, but I can't seem to get any tables of what the listing numbers are.

    I mean like:

    if (key.isdown(key.Z)

    But, it doesn't work. Can anyone PLEASE tell me what I type for letters as controls?

    EDIT:

    Fixed: Read the post below for the key codes, and enter the numbers like:


    if (key.isdown(90)

    Thanks again, guys.
    Last edited by Person99; 09-17-2006 at 06:07 PM.

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Location
    Michigan
    Posts
    119
    Here is a list of the key codes.

    Key Codes

  3. #3
    Member
    Join Date
    Sep 2006
    Posts
    64
    Thanks!

    Edit:
    Err... When I enter the code in the script, it doesn't work.
    Last edited by Person99; 09-17-2006 at 05:57 PM.

  4. #4
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    for the Z key:
    use:
    Code:
    if(Key.isDown(90)){..}
    and not:
    Code:
    if(Key.isDown(Key.90)){..}
    zlatan
    New sig soon

  5. #5
    Member
    Join Date
    Sep 2006
    Posts
    64
    Woot, it works! Thanks again!

  6. #6
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    no problem
    New sig soon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center