A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: The Makings of Weapons

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    The Makings of Weapons

    Can anyone tell me the way to make Madness Interactive in its way? I generally likes the way it worked out, but how do you atually equip different weapons? I don't get the equipping action that games always use, e.g. Adventure Quest, Madness Interactive, and many other beat-em-up & shoot-em-up games.

    I really appresiate the answer to how do you change a property, for example, a game but you click on the objects instead of dragging it to replace a example... *splutter* I can't explain it properly... If you can get the point...
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Hey,

    Try looking at this tutorial, it deals with platform games as well as equipping and using weapons : http://www.kirupa.com/developer/mx20...tform_game.htm

    Not sure if that'll help, but give it a try

  3. #3
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    Ok I will look at it
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  4. #4
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    This page makes a good point but I was only wondering how do u wield a weapon, so like you got a empty MC on your hands, and it changes to different weapon when you click something? Or like you got no hat and if you click a pirate hat, it adds onto your head?
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  5. #5
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Well I suppose on your 'head' movieclip you can have different frames

    Frame 1 - "nothing" - just a simple head
    Frame 2 - "santa hat" - santa hat on head (hehe, just because xmas is almost here)

    And then when you click or hitTest the object on the ground, it simply says:

    _root.char.gotoAndStop("santa hat");

    And bam, you have a santa hat on your head!

  6. #6
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    ohhhhhh very clever!
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  7. #7
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    Thanks osteel! And would you mind telling me how to save this graphic and use them in another frame??
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  8. #8
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Use them in another frame?

    Well you shouldnt have to. If you put your character on its own layer, and just have frames F5 going throughout, you should only have to change it once and he'll always have the hat on his head until you tell it not too ...

    Is that what your asking?

  9. #9
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    Oh! but what if my character is moving?
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  10. #10
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    I ment to say, I am making a car game, and so I get the user to personalise their drive. Now what can I do? Should I stuff them all into a MC and use that MC onto the stage... Or what??

    Cheers
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  11. #11
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Oh I see ...

    Hmm, well if its a car game, the car will always have the same appearance so you dont have to really worry about animating the different 'drive' looks

    Secondly (this is probably a very primitive method) , in your car MC, make different 'sections'

    By this I mean different parts of the car. So you'll have you Car MC and inside that have a movieclip for the 'hood' , 'top' , 'wheels' etc

    Now in each of THESE movieclips you'll have the different types.


    Ok for example:

    The user chooses a convertable. The default car has its 'top' movieclip with a top on it and we all know convertables have no top.

    So in this 'top' movieclip you will have another keyframe labeled 'convertable' and the picture will have no top ( a little drawing involved I know )


    So when the user chooses it you'll do : _root.car.top.gotoAndStop("convertable");

    Make sense?

  12. #12
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    A bit, so you are saying that - OH -!

    Thanks Osteel, I wonder will this last for the whole movie until I control/Change it again??
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  13. #13
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    It should.

    Just put the char , or in your case the car , on its own layer and just let it expand to the end of the movietimeline

  14. #14
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    good point
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

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