How do I make a tanks game?

0 favourites
  • 13 posts
From the Asset Store
Lobby like in "Counter Strike": everyone can run a server or join a server. Only useful events without excess options: 2
  • Hi,

    I am young begginer and I want to create a tanks game, but I don't know how so I want you to help me

    I want to make a game where there is two tanks which shoots to themselfes

    I want to make many other things in this game of course, but first I must know how to start

  • Hi,

    I am young begginer and I want to create a tanks game, but I don't know how so I want you to help me <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I want to make a game where there is two tanks which shoots to themselfes

    I want to make many other things in this game of course, but first I must know how to start <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    hi, i think for your generic question this is the start point..

    https://www.scirra.com/tutorials/top/pa ... e=detailed

  • I want to make a game where there is two tanks which shoots to themselfes

    SAY NO MORE.

    Here you go: https://www.dropbox.com/s/tj8iqiob5vy8c ... .capx?dl=0

    <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • First you need some tank sprites and you can make your own or here are some free sprites:

    Once you have your tank sprites set up you need to add the 8 direction movement to the tanks.

    The arrow keys will work to drive the tank without any events needed.

    Then you need a bullet for them to fire. You can use that bullet sprite or make your own.

    Give the bullet the Bullet behavior.

    The bullet only fires at the angle it is set to so you have to set the angle to the angle the tank is facing.

    On Key Pressed: Create bullet at position Tank X and Y. Set Bullet Angle to Tank Facing Angle, Enable bullet.

    That is pretty much all you need to make a tank move and fire.

    Once you get one tank working you can start creating an enemy tank and that will use the In Line Of Sight and Follow Path Behaviors so study the tutorials on those Behaviors.

  • I meant a game like this

  • I meant a game like this

    Look at the catapult example on C2 for ideas.

    That is probably using physics for the bullet and that is a more advanced game design skill but you can still learn it pretty fast.

    The rest is just creating sprites that you can move and a fire button.

  • So can you help me how to do it? I would appreciate that

  • So can you help me how to do it? I would appreciate that

    You first need to go study the catapult example in C2 because that is using physics.

    I can't teach you how to set up physics in a game if you don't have the basics of how physics works.

    The example uses a pig and a pivot arm to project the pig at a castle of blocks with the physics behavior.

    That is the same as launching a missile or cannonball over the mountain at your opponent. If you understand what makes the pig fly and fall then you can make that game you posted.

  • Okay, but can you give me the link where I can study it?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Okay, but can you give me the link where I can study it?

    Do you have the free version of C2?

    If not get one.

    Click on New Game and scroll down to Catapult example.

    Open that and run it so you can see how it works and then start looking at the event sheet so you see the controls used.

  • I seen the event sheet and I think I understood this

  • I seen the event sheet and I think I understood this

    Good!

    Now replace the catapult arm with a tank sprite and the pig with your bullet sprite and create a mountain sprite to shoot over and you have a good start on your game.

    When you get that far come on back and we can look at ways to improve it so it looks like that game.

  • This is what I done: https:// drive. google. com /file/ d/ 0Bw34Hbx0HAcGZHNCY256NkljdTA/view?usp=sharing

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)