A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Fighting game like streetfighter

  1. #1

    Smile

    Hi i am making a fighting game like streetfighter,
    and i want to know how to make a lifebar.
    What i mean is that when i punch or kick at the enemie player that when it hits the enemy the enemies lifebar loses his life. how can i make that work???


    Thanks in advance,


    WesBite

  2. #2
    FunkNastyJim
    Join Date
    Nov 2001
    Posts
    21

    Question move x

    one of the easiest ways i've found is to make two bars of the same size on 2 different layers make the top layer a mask for the bottom.
    make the masked bar a movie clip and whenever a move is successfull, use this code:
    _root.(name of movie)._x -= (however much you want the move to take off);

    or if you want the bar to go to the right use +=

    here is a example of this method:
    http://geocities.com/mattlarrabee/chickenFight.htm

    hope that works if you want the fla i'll send it to you
    matt

  3. #3
    arcadenetwork
    Guest

    Chicken Fight

    My God, I held my finger on the Ctrl key and my god - the feathers damn well flew! lol

    My game:
    [swf height="400" width="550" background="#FFFFFF"]http://www.arcadenetwork.com/worlds/worlds.swf[/swf]


    Anyone have any good ideas that they would like to see in the game? It a multiplayer turnbased fighting game - You start fighting if two people go into a square next to each other!


  4. #4

    Re: move x

    [QUOTE]Originally posted by lare5
    [B] one of the easiest ways i've found is to make two bars of the same size on 2 different layers make the top layer a mask for the bottom.
    make the masked bar a movie clip and whenever a move is successfull, use this code:
    _root.(name of movie)._x -= (however much you want the move to take off);

    or if you want the bar to go to the right use +=

    here is a example of this method:
    http://geocities.com/mattlarrabee/chickenFight.htm

    hope that works if you want the fla i'll send it to you
    matt

    Well if you have a *.fla please send it because, its now still a little bit unclear for me.
    So please do.
    my e-mail is:

    webmaster@wesbite.net

    Thanks in advance,


    WesBite

  5. #5

    Smile its now still a little bit unclear for me.

    Well if you have a *.fla please send it because, its now still a little bit unclear for me.
    So please do.
    my e-mail is:

    webmaster@wesbite.net

    Thanks in advance,


    WesBite

  6. #6
    Junior Member
    Join Date
    Nov 2001
    Posts
    4

    i Know how to make the life bar

    I know how heh take a look at my game ala street fighter

    onClipEvent (enterFrame) {
    if (this.hitTest(_root.dude2.arm2 )) {
    _root.dude2.gotoAndplay("damaged");
    _root.Lbar2.nextFrame()-2;
    }
    }
    That one code basically tells the computer that if the character gets sacked go to next frame of life bar which is basically a shape tweened object that goes down to nothing.while telling character to go to damged state.

    site hosting my game http://www.angelfire.com/film/neochilds/Born.htm
    sorry but the game is still being debugged \( artificial Intelligence issue)

    email me if you need help neochilds@aol.com

  7. #7

    Smile Thanks

    Thanks for the help, i've you are searching for a website what is a tutorial for working with pixels (Streetfighter Graphics)you must then go to:
    http://40.70.255.173/tutorial
    And check it out ! ! !

    Thanks in advance,

    WesBite

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