A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: Help! (On Guns and Dynamically Loading Projectiles)

Threaded View

  1. #1
    Title? Am I King or something?
    Join Date
    Jul 2009
    Location
    Ponyville, Happytown on the continent Nowhereland
    Posts
    26

    Question Help! (On Guns and Dynamically Loading Projectiles)

    Hey,

    I'm at a standstill right now. I'm trying to make an Asteroids remake (if you want to know more, I'll post it once it is in Alpha stage) and I already have a nicely-functioning spaceship-movement system; however, my weapons aren't working the way I want them to. I want them to:
    -Dynamically load when spacebar is pressed
    -Start at ship and fire immediately in ship's current direction
    -Have more than one projectile at a time firing without a projectile reset
    -Not follow the ship around if spacebar is held down

    Now I'm not a total newb at flash, and I already know how to dynamically load sprites onto the stage. However, the shots always reset if I press spacebar again and follow the ship around if I hold spacebar. I want it to fire rapidly, like a machine gun, but completely ignore what the ship or the other instances of shots are currently doing and just
    -start at the ship
    -move in the direction the ship was facing

    Can anybody help me at all?

    Fusiox
    Last edited by --Fusiox--; 10-27-2009 at 05:13 PM.

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