A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: i want to create a simple shooting game

  1. #1
    Senior Member
    Join Date
    Dec 2003
    Posts
    135

    i want to create a simple shooting game

    i want to create a simple shooting game, how???
    thx

    kinda with a person that shoots bullets at falling stuff

  2. #2
    Monkey Jam
    Join Date
    Jun 2001
    Location
    Location : Location
    Posts
    162
    Have you made the mandatory flash hittest shooting game yet?

    If not, I imagine you'll be able to pick it up from the HitTest posts( in this forum ).

    Once you've done that, I can give pointers on the firing missiles aspect. This is more tricky than just the hittest method as you have to go back to school and re-learn trigonometry( see, those lessons were useful ). It doesn't help that Flash's y-coord is upsidedown

    e.g.:
    Snowball Game

    chopsticks
    Last edited by Chopsticks; 12-17-2003 at 05:13 PM.

  3. #3
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    CoolGuy you may want to read the "Read Me First" sticky, it's got some good info in it regards how to get a good response for your questions here.

    Welcome to the board btw

    Squize.

  4. #4
    Member
    Join Date
    Aug 2003
    Location
    Independence, Mo.
    Posts
    82
    that snowball game was pretty cool did you make that?

    Originally posted by Chopsticks
    Have you made the mandatory flash hittest shooting game yet?

    If not, I imagine you'll be able to pick it up from the HitTest posts( in this forum ).

    Once you've done that, I can give pointers on the firing missiles aspect. This is more tricky than just the hittest method as you have to go back to school and re-learn trigonometry( see, those lessons were useful ). It doesn't help that Flash's y-coord is upsidedown

    e.g.:
    Snowball Game

    chopsticks

  5. #5
    Senior Member
    Join Date
    Dec 2003
    Posts
    135
    i created an object that fires bullets...
    now i want to make stuff coming down towards the buttom and when i hit them they die

  6. #6
    Monkey Jam
    Join Date
    Jun 2001
    Location
    Location : Location
    Posts
    162
    Yes, I made that(Snowball) game. It was based on some earlier work:
    http://www.kode2.co.uk/bbcgames/bigc...t/prototype04/

    With Flash shooting games I try to maintain an array of what enemies are on screen at once and sometimes what part of the screen they're in. With these two games, I wanted to restrict the enemies to one at a time, so that there was only ever one clip doing a repeated hittest.

    If you have multiple enemies, most simply you can either have all your bullets doing hittests, or all the on-screen enemies doing them.
    The problem is that as the screen gets over run, the game slows down considerably from moving sprites and from so many clips doing their own hittests.

    You may want to consider that either you'll have one enemy on screen at once, or the user can only fire one bullet at once.
    E.g. heli2
    NOTE: not my game

    If the user has bullet mcBullet, drag a copy of mcEnemy onto the stage, but hide it so you don't see it when the game runs. Within mcEnemey do something like:

    onEnterFrame() {
    this._y += 5;

    if( this.hitTest( _parent.mcBullet ) ) {
    trace("HIT");
    this.removeClip();
    }
    }


    Then, when you want a new enemy, just duplicate this clip.


    chopsticks

  7. #7
    Senior Member
    Join Date
    Dec 2003
    Posts
    135
    dl me (.fla)

    ok, can someone make those devil pics on the .fla come down form the top, and once i shoot them all more come...
    about 2 shoots will kill a devil if u can
    thx

  8. #8
    Senior Member
    Join Date
    Dec 2003
    Posts
    135
    how do i get the the devil pics to come down from the top and when i hit them they disepear??

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