How do I make a tank?

Get help using Construct 2

Post » Sat Dec 17, 2016 3:40 pm

Message: Mord can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
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?

Image

Here's the link to my capx file: https://drive.google.com/open?id=0B6O9wyrK1YWRYy1jT3hPd0xFQ2c
Last edited by Mord on Sat Dec 17, 2016 4:11 pm, edited 1 time in total.
B
9
Posts: 20
Reputation: 379

Post » Sat Dec 17, 2016 4:09 pm

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 ;]
Last edited by Nifl on Sat Dec 17, 2016 4:10 pm, edited 1 time in total.
B
6
S
2
G
2
Posts: 33
Reputation: 891

Post » Sat Dec 17, 2016 4:10 pm

I'm pretty sure that I did, hopefully the link works now
B
9
Posts: 20
Reputation: 379

Post » Sat Dec 17, 2016 4:13 pm

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
B
6
S
2
G
2
Posts: 33
Reputation: 891

Post » Sat Dec 17, 2016 4:13 pm

Yes. Ill try it. Brb
B
6
S
2
G
2
Posts: 33
Reputation: 891

Post » Sat Dec 17, 2016 4:17 pm

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
B
6
S
2
G
2
Posts: 33
Reputation: 891

Post » Sat Dec 17, 2016 4:17 pm

try this bro 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.
Last edited by gamecorpstudio on Sat Dec 17, 2016 4:19 pm, edited 1 time in total.
B
75
S
22
G
68
Posts: 1,337
Reputation: 43,271

Post » Sat Dec 17, 2016 4:19 pm

gamecorpstudio wrote:try this bro How to make a Tank its a bit outdated but should work.


:lol:
B
6
S
2
G
2
Posts: 33
Reputation: 891

Post » Sat Dec 17, 2016 4:19 pm

Thanks a lot!!! I'll try it out and let you guys know! I really appreciate all the help!
B
9
Posts: 20
Reputation: 379

Post » Sat Dec 17, 2016 4:20 pm

Message: Mord can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
gamecorpstudio wrote:try this bro https://www.youtube.com/watch?v=_4S3DS_djDg&ab_channel=LeroyHiggins 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!
B
9
Posts: 20
Reputation: 379

Next

Return to How do I....?

Who is online

Users browsing this forum: blue visionary, namaewayukidesu, senecaa and 10 guests