A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: On keypress events

  1. #1
    Junior Member
    Join Date
    Feb 2000
    Posts
    12

    Post

    Is it possible to have a keypress event that is based on two keys being pressed simultaneously instead of the usual one.

    What i mean is in the platform game i'm working on I want to be able to combine the jump button and a movement button, so i can jump in the direction of the movement.


  2. #2
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429

    Cool

    No but you could make a short movie clip that makes the object jump or ball up that when triggerd by lets say the spacebar would set the property of the movie clip from the property of the one currently running. Then at the end of the movie have it replace its self with the original movie clip using the "if" instance to set the properties. If you need a little help with this I'll try and shoot you some code. Regards, Bill

    ------------------
    Macromedians 1:1

    In the beginning the web was without shape and color, and the hype covered the darkness of the net. Then there was a Flash and life came to the web and vision became reality.

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