A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Keypress

  1. #1
    But it still fills prams ivorsmallun's Avatar
    Join Date
    Jul 2001
    Location
    Far Far Away
    Posts
    400

    Keypress

    Flash folk,

    It's quite around these parts now a days...

    Question---

    How do you get around diagonal movement. I'm using the arrow keys for movement but when i use the up and right arrow keys, i get diagonal movement.

    How do i stop this happening...

    Thanks,

    Ivorsmallun...

  2. #2
    Member
    Join Date
    Oct 2008
    Posts
    37
    stop diagonal by using 'else if' rather than just 'if' on your key.isDown code

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