A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: gun

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    1

    Post

    What is the action script that allows a gun to fire. I've been taking asteroids apart and I'm trying to isolate this one feature. Anyone know an easier way to do thi. For the moment the postition and the rotation of the gun can be static, I just need to know how to make bullets.

    Thanks,

    Eric

    ------------------
    they fooled ME Jerry!

  2. #2
    Member
    Join Date
    Mar 2000
    Location
    Atlanta
    Posts
    83

    Talking

    You use DuplicateMovieClip to make the bullets fire.
    There is a FLA in the Flashkit movies. Under Game Code - Drag and Shoot.

    brad

  3. #3
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881

    Post

    its a bit more complicated than just duplicat movieclips if you wanna check to see if the bullets hit anything then you will need multiple collision detection which is when flash starts to get interesting!!

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