How do I make a Tank

0 favourites
  • 11 posts
From the Asset Store
Try to destroy your enemies in a hard battle! Good luck!
  • How do I stick my tank turret to my tank? I can drive the base of my tank around but the turret won't follow. xDxD

    <img src="http://i.imgur.com/cuTrI1E.png" border="0" />

  • Use the pin behaviour.

  • <img src="http://i.imgur.com/uj7yoPh.png" border="0" />

    I'm doing something wrong obviously, the turrent stays put. lol

    Nvm figured it out.

    <img src="http://i.imgur.com/XR9UdA5.png" border="0" />

  • Okay I have another problem, I'm using the Car behavior for my tank but I want the tank to turn even when there is no forward speed. Any way to do this?

  • Add keyboard object. Then..

    + On Key down (right arrow)

    + If NOT key down (up arrow)

    -> TankBase Rotate Clockwise by whatever speed you want

    + On key down (left arrow)

    + If NOT key down (up arrow)

    -> TankBase Rotate Counter-clockwise by your chosen speed

    Should work..

  • Use Containers !

  • Thanks^ ill try it. =P

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have 2 tankturrets of the same kind on the map, but I only want to control 1 of them at the time with my mouse. Do I need to make another object type for the other turret?

  • For what it's worth, the newest version of C2 comes with a Turret behavior. I haven't had a chance to check it out, but it may (or may not) be of use to you. Good luck.

    If you want to control both tanks, but only one at a time name one 'tank1' and 'tank2' then just have all the code for tank2, or one, disabled until the tank is clicked on. Pretty sure that's possible, but remember to disable the other tak or you'll facepalm...

  • For what it's worth, the newest version of C2 comes with a Turret behavior. I haven't had a chance to check it out, but it may (or may not) be of use to you. Good luck.

    If you want to control both tanks, but only one at a time name one 'tank1' and 'tank2' then just have all the code for tank2, or one, disabled until the tank is clicked on. Pretty sure that's possible, but remember to disable the other tak or you'll facepalm...

    good idea I guess. Still annoying to make the code for each tank.

  • So atm I'm trying to make it so when the tank is moving the tracks make noise. Any idea how to make a soundloop while something is moving?

    Oh and How do I add my game to my signature? :P

    scirra.com/arcade/shooter/2598/eastern-conflict

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