A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] [help] Help with (i think) arrays

  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    85

    [F8] [help] Help with (i think) arrays

    Hello everyone!
    I'm now on my third Flash game, and I've run into a problem I can't solve.
    In the game(please download the FLA to understand, I doubt my explaining ability) the when the red blocks are drawn, and you hit one of the WSAD keys, the corresponding missiles(which are off to the side on the bottom right) should appear at each red block. Sadly, i couldn't figure out how to make that work! Controls would be the mouse to move, click to draw, the "1" key is to draw "walls" and the "2" key is to draw the red missile blocks. WSAD to fire off missiles in the corresponding direction.
    Thanks in advance!
    Peejaroni
    Attached Files Attached Files

  2. #2
    Senior Member RangrJay's Avatar
    Join Date
    Sep 2005
    Location
    Las Vegas
    Posts
    163
    while i didn't look at the fla, a quick suggestion, did you create an eventListener? if not you should, that way when one of those keys are pressed they'll fire their event.
    Xero Patience Studios
    Web Design
    Software Development
    Graphic/Logo Design

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    85
    yea, I used something like that. I had [as]
    eval("misu"+j).onEnterFrame = function(){
    if(Key.isDown(87)){
    this._x = eval("rline" + i)._x
    ... etc.
    }}
    Thanks for posting though

  4. #4
    Member
    Join Date
    Jan 2007
    Posts
    85
    yup, tried that, still didn't work

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