How do I make a tank?

0 favourites
From the Asset Store
Tanking Tanks
$20 USD
80% off
Try to destroy your enemies in a hard battle! Good luck!
  • Tried pinning the turret sprite to the body sprite, but it just ends up wonky and following it from behind. Is there anyway to fix this?

    Here's the link to my capx file: drive.google.com/open

  • I can't seam to figure out how to get your link to work. Two basic questions instead:

    Did you set the imagepoint 0 properly for each of the objects? (the Hotspot)

    Did you set the gun/turrets position to the position on top of the tank that you want it to be pinned to before you did the "Pin to object" action?

    Edit: If you didn't do either of those things, it will be wonky ;]

  • I'm pretty sure that I did, hopefully the link works now

  • I made a fantastically beautiful tank with this behavior. Maybe you can spot some difference between this and your code. I'm sorry I don't know how to help you when I can't seem to get the link working.

    https://drive.google.com/open?id=0B3l68 ... HJLSF9rbm8

  • Yes. Ill try it. Brb

  • Its the Tenth event. It continuously sets the position and angle to the tank, as long as the Tankturet is on top of the object. I guess it tecnically should wotk to do that- But youll only need to set the pin once, for example at the start of the layout.

    That is: If you change the tenth condition to "At the start of layout" (from system conditions) it will work

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • try this bro

    its a bit outdated but should work.

    P.S look at the RTS example construct2 comes with has tank like objects inside with rotating turret, that you control.

  • try this bro

    its a bit outdated but should work.

  • Thanks a lot!!! I'll try it out and let you guys know! I really appreciate all the help!

  • try this bro youtube.com/watch How to make a Tank its a bit outdated but should work.

    P.S look at the RTS example construct2 comes with has tank like objects inside with rotating turret, that you control.

    Hahahahahahahahaha, brilliant!

  • Its the Tenth event. It continuously sets the position and angle to the tank, as long as the Tankturet is on top of the object. I guess it tecnically should wotk to do that- But youll only need to set the pin once, for example at the start of the layout.

    That is: If you change the tenth condition to "At the start of layout" (from system conditions) it will work

    Yep! I changed it to "at the start of layout" and it worked! Thanks!

    EDIT: So now there's a problem with the shells. Apparently, whenever I move forward the imagepoint that I set seems to move forward with it and then the shells just appear farther and farther away. Anyways that I can fix this?

  • Mord see if this tank example works

    what do you mean by shells? tank dont leave behind Shells. they shoot big bullets sometimes rockets. but they never leave behind bullet shells.

    unless they use some sort of minigun.

  • I meant the bullets <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />

    Here's a link to the new and updated one: drive.google.com/open ... ll4c3ZEdG8

    EDIT: also, yeah they do use shells... en.wikipedia.org/wiki/Shell_(projectile)

  • Mord

    updated capx i added 2 mini-guns left click shoots big gun right click pressed shoots the mini-guns. happy Mayham

    when i said shells, i meant empty shells(the ones that are left over from a handgun after you shoot someone and the coroner comes to your house cause they found a bullet shell that you purchased from store ....lol ... to much info), not the filled rocket type of shells. however that part is covered in my capx, the bullets spawn and move on cannon or turret position to their own angle. so im guessing it should fix your issues with shells also.

  • https://drive.google.com/open?id=0B0lqVR-ryWBQSDF2MHFycVBnY1E updated capx i added 2 mini-guns left click shoots big gun right click pressed shoots the mini-guns. happy Mayham

    Thanks a lot! The thing is, I only have the free version of it at the moment, as i'm still a student and learning how to use the program. So i'm not sure that I can use all the events that you used.

    when i said shells, i meant empty shells(the ones that are left over from a handgun after you shoot someone and the coroner comes to your house cause they found a bullet shell that you purchased from store ....lol ... to much info), not the filled rocket type of shells. however that part is covered in my capx, the bullets spawn and move on cannon or turret position to their own angle. so im guessing it should fix your issues with shells also.

    Yeah, I hear ya

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