A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: Game Component: Was Bored today!

  1. #1
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976

    Game Component: Was Bored today!

    i was bored today and decided to make a game component.

    Dont know what i could use it for but it killed sometime.

    here

  2. #2
    Time Killer sspskater's Avatar
    Join Date
    Jun 2002
    Location
    Closer to u then u think
    Posts
    493
    lol wild, the blood throw was quite the effect, maybe make it into a shooter for an idea to kill even more time
    A young mind is more knowledgable then a mind corrupted and blinded by society.

    Portfolio: My Portfolio
    FFGuardians:PHP MMORPG(Closed Beta)
    PyroWare Studios:PyroWare Studios-Flash&Web Development

  3. #3
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Yeah. But the good thing about making components is that they can be for anything. So if i change the stickman mc to lets say a car and the blood mc to smoke you can have yourself a nifty little explosion.


  4. #4
    Ihoss
    Guest
    the mouse movement was cool. so was the blood

  5. #5
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Hehe thatnks. No one has any speed probs? Not that i really care just thaught it would be good to know incase i end up using it

  6. #6
    Senior Member kendude's Avatar
    Join Date
    Sep 2003
    Location
    Hartford, CT USA
    Posts
    877
    Very cool.

  7. #7
    Amiga freak Ironclaw's Avatar
    Join Date
    Jan 2001
    Location
    Sweden
    Posts
    1,650
    Yes. nice bloody trail........ but dont like that the mouse pointer is moving with delay. Should be direct instead.

  8. #8
    Ihoss
    Guest
    ive experienced that mouse effect once (running windows, obviously). it wasent as much fun then...

  9. #9
    Flash Enthusiast? thecombat's Avatar
    Join Date
    Aug 2003
    Location
    New Jersey
    Posts
    305
    Very Nice indeed, is there a place to download it?

    IHOSS: I think that the trail effect was intended

  10. #10
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Thanks, theirs no downlod atm but i can get one up if people want it.

    The cursor was supposed to assimilate actual snipering and have delay.

    Code:
    onClipEvent(load){
    _x=_root._xmouse;
    _y=_root._ymouse;
    speed=10;
    }
    onClipEvent(mouseMove){
    targetx=_root._xmouse;
    targety=_root._ymouse;
    }
    onClipEvent(enterFrame){
    _x+=(targetx-_x)/speed;
    _y+=(targety-_y)/speed;
    }
    thats the code 4 it

  11. #11
    Ihoss
    Guest
    1 thing: maybe the body parts should stop spinning once theyve stopped bouncing

  12. #12
    Flash Enthusiast? thecombat's Avatar
    Join Date
    Aug 2003
    Location
    New Jersey
    Posts
    305
    Haha I noticed that, Thought it was quite funny actually...

  13. #13
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Yeh i know, and the only part that splats blood on the ground is the head just didnt get around to finishing it.

  14. #14
    Member
    Join Date
    Dec 2003
    Location
    Here.
    Posts
    48
    I pity da fool who doesn't like games where you get to splat blood

    good job!
    Ding.

  15. #15
    Banned
    Join Date
    Dec 2003
    Location
    Denmark, Europe
    Posts
    53
    Im a newbie, but how did you create the blood when the head hit the ground? I suppose you create new objects which I would really like to learn.

  16. #16
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    All i did was create a blood movieclip. Place it on the stage and gave it an instance name off bloods. All you need to do then is when the head reaches a certain _y on the stage duplictae the movie clip and place the duplicated movie in the correct location on the stage.

    heres an example of the duplicating code

    Code:
    //add i to i which begins at 0
    i++;
    
    //duplicate the bloods mc and give it a new untaken name
    _root.bloods.duplicateMovieClip("bloods"+i, i);
    
    //set the _x of the blood to the _x of the head
    _root["bloods"+i]._x = this._x;
    
    /set the _x of the blood to the _x of the head and place it under the head
    _root["bloods"+i]._y = this._y+_height/2;

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