-
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... :doughnut:
-
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 :)
-
-
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?
-
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!
-
-
Thanks osteel! And would you mind telling me how to save this graphic and use them in another frame??
-
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?
-
Oh! but what if my character is moving?
-
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
-
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?
-
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?? :)
-
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
-