PDA

View Full Version : 2 player tank game


dakota95
12-09-2011, 07:26 PM
This is one of the first games I made. It is 2 player and it is a top view tank battle. There is a half shpere in the middle and the tanks and bullets cannot go through it.

Controls Player 1:
arrowkeys - Move
enter - Shoot

Controles player 2:
W - move forward
S - move Backward
A - turn left
D - turn right
space bar - shoot

ENJOY! please leave comments and feal free to edit game.

UPDATE Version 1.1
Now there is a score keeper.

dakota95
12-10-2011, 04:35 PM
no comment?

animeking24
12-10-2011, 06:52 PM
how long did it take you to take thi game, and what purpose does this game serve? Just curious....

dakota95
12-11-2011, 10:40 AM
how long did it take you to take thi game, and what purpose does this game serve? Just curious....

about 30 min. It is just a game I like to play with friends cause its 2 player.

arty-fishL
12-11-2011, 02:30 PM
This is quite well made. Good job http://www.alice.org/community/images/icons/icon14.gif.

A suggestion I would make is stopping the tanks from driving off the edges of the screen.

zero00
12-11-2011, 05:17 PM
I love how the tank's shots, because they are still attached to the tank, can be turned around to hit the other player! :D

As for the scorekeeping, you could put 2 3D text objects in the center and when a player dies, the text object updates its text with "1P <number of points> Points"

I made a quick example of it (seen in the picture below)

dakota95
12-12-2011, 11:28 AM
This is quite well made. Good job http://www.alice.org/community/images/icons/icon14.gif.

A suggestion I would make is stopping the tanks from driving off the edges of the screen.

good idea. Would I do that by saying 'if tank if x meters away from hill' then 'move toward hill y meters'?

dakota95
12-12-2011, 11:29 AM
I love how the tank's shots, because they are still attached to the tank, can be turned around to hit the other player! :D

As for the scorekeeping, you could put 2 3D text objects in the center and when a player dies, the text object updates its text with "1P <number of points> Points"

I made a quick example of it (seen in the picture below)

ok. I'll try it. I've just never tried having numbers that update themselves.

animeking24
12-17-2011, 05:13 PM
hey, can you post the game with a score keeper of who wins and loses. thanks, i wanted to try it out with my friend.

dakota95
12-17-2011, 07:51 PM
hey, can you post the game with a score keeper of who wins and loses. thanks, i wanted to try it out with my friend.

sorry, I haven't figured out how to make the score keeper

dakota95
12-17-2011, 10:13 PM
could someone please make a score keeper for me?:o :o :o

animeking24
12-17-2011, 11:09 PM
1. Set up a method to do whatever you want to do when the mouse is
clicked on a particular object. To keep score, you could set up a
variable as a property of an object, or as a property of the world itself.
When the method runs, the score varibale could be incremented or
otherwise changed.
2. Set up an event of the form:
When the mouse is clicked on (something) do (method name)
Put the object in place of (something) and the method described
above in place of (method name).
The method coud do one thing, do several things, or call other
methods from within itself, which would be the proper way to layer
software modules.
You could also set up an event of the form:
When something is true
to cause whatever actions you desire when the score variable reaches
a certain value.For example:
When (score > 100) becomes true, do (world.victory






Let me know if this helps?

dakota95
12-20-2011, 03:01 PM
1. Set up a method to do whatever you want to do when the mouse is
clicked on a particular object. To keep score, you could set up a
variable as a property of an object, or as a property of the world itself.
When the method runs, the score varibale could be incremented or
otherwise changed.
2. Set up an event of the form:
When the mouse is clicked on (something) do (method name)
Put the object in place of (something) and the method described
above in place of (method name).
The method coud do one thing, do several things, or call other
methods from within itself, which would be the proper way to layer
software modules.
You could also set up an event of the form:
When something is true
to cause whatever actions you desire when the score variable reaches
a certain value.For example:
When (score > 100) becomes true, do (world.victory






Let me know if this helps?

well, the only problem with this is that I am terrible at variables. Do you think you could do it for me?

jediaction
12-21-2011, 10:51 AM
Now that I think of it, you could try and do my split screen system and make a tank game from it.

BlackOpsZombieMaker
03-27-2012, 06:05 PM
Who can help me out???

BlackOpsZombieMaker
03-27-2012, 06:13 PM
HOWWWW!! please help

dakota95
03-27-2012, 06:48 PM
Ok, first, stop posting this question all over the place. Then download Arty's object pack. It has tons of guns.. It is in the "share objects" section of the forums and is called community objects.

Or, you could go to the "lounge" and go to "You Fools" by xiiii2495 and go to the last few pages.

dakota95
03-27-2012, 06:54 PM
This is quite well made. Good job http://www.alice.org/community/images/icons/icon14.gif.

A suggestion I would make is stopping the tanks from driving off the edges of the screen.

And since this thread was brought up. How would I do this?

And I have the one with the scoring, I just havent posted it cause this is old. But I'll get aroung to it soon.

dakota95
03-28-2012, 09:02 AM
I have now updated the Tank Game (http://www.alice.org/community/showthread.php?p=44379#post44379)

BlackOpsZombieMaker
04-02-2012, 01:09 PM
Let me know what you think and make any renderings you want to this. then send me the new version with a different name