PDA

View Full Version : PvP gun arena


[DarKKaos]
08-21-2005, 04:35 AM
I am making a player vs player game where there are 2 players against eachother. Each player controls a stick figure in a fixed environment from a side view. The stick figures have a gun and can shoot eachother. They can jump, crouch, run, shoot, climb ladders, fall, everything. I want lots of blood to entertain the hardcore stick figure fans and need spawn points where it will spawn your player wherever there the other player isnt standing around so there is no camping the spawn points. I want a game similar to counterstrike where you need so many kills to win a round, and so many round wins to win the entire game, then u can restart the game and play again. I want gravity and platform simulators and random death and blood generators so it doesnt always look the same. I have the map, sticks, platforms, and guns done but the problem i have is with the actionscript. Im not so much a noob with actionscript but i am not anywhere near an expert eaither. So if anyone know alot about actionscipt please help me. All i need is what scripts to put on what and how to put the objects together to make them work out. Thanks.

[DarKKaos]
08-21-2005, 05:00 AM
ok i got the gravity and movement scripts (as if i didint alrdy know the movement) thanks to btomw from flashkit.

piratefish
08-22-2005, 02:10 AM
Jeez! That's quite a lot to be posting about. Normally all that is given is a small part of their problem. Everyone's so secretive here.

But anyways I thought of your "Blood Generator" and you could do an actionscript code for it and risk it that way, or you can do individual hitTests on each body part (head, Left Leg, Right leg, etc.) and you can throw a Math.round(Math.random()*{number of possibilities}) to make a random number and you can animate them yourself, just so it's not always the same, but it's one less thing you have to research.

For the entire project I see it as three or four frames on the main timeline. First frame being both your load as well as your play screen. Second frame is where you'll have all your code including the code to check to see the scores. From that if statement you could either tell it to go to the fourth frame to say "Player 1" wins and have a restart button or you could tell it to disable all the key movements and then play an animation over the battlefield, just for a good look.

I hope I gave you a little help in direction or ideas.

[DarKKaos]
08-22-2005, 02:29 AM
hmmm. that would be cool if you could do a replay of the round but that would be ever so hard to do. Plus im not that good at actionscript. I only know how to make buttons take you somewhere and how to make things move and hittests and stuff that you would need for a basic game.

CMU
08-22-2005, 08:05 AM
A replay of the round wouldn't be that hard - you'd just have to stick the keypresses for each frame into an array then play those into the game engine rather than listening for new keypresses. You'd have to make sure you had no random effects that could influence the game too, or it might not run the same in the replay. This is the sort of thing that is easiest to build in from the start rather than tack on later. It'll influence a fair few design decisions.

However, if the only actionscript you presently know is about making buttons that take you places, a game is perhaps a bit on the ambitious side for the moment. I'm not saying you aren't capable of making it work, but you might find it easier to start smaller. Do a couple of mouse-trails experiemnts, small interactive web toys or something to get your basic skills up.

piratefish
08-23-2005, 01:57 AM
...a game is perhaps a bit on the ambitious side for the moment. I'm not saying you aren't capable of making it work, but you might find it easier to start smaller. Do a couple of mouse-trails experiemnts, small interactive web toys or something to get your basic skills up.

Just like how Luke needed to train with his lightsaber on the floating droid to later kick butt on his father. Just trying to make an analogy to soften the blow ;)