Tank push back

Get help using Construct 2

Post » Wed Oct 24, 2012 1:29 pm

I try to push my enemy tank back if it got hit . But the problem is the direction
The tank move from right to left and the left and right.

if it moves from right to left i use tank.X =tank.X -20 to push it back.

for left would than be tank.X=tank.X+20

How can a find out in with direction the tank is headed...?

I hope someone can help. I used the bullet movement for the Movement.

Thank you..

Martin...
B
5
S
1
Posts: 49
Reputation: 1,148

Post » Wed Oct 24, 2012 3:31 pm

You can read the angle of the Tank which will show you the direction and then simply add 180 to invert it.
B
42
S
19
G
12
Posts: 723
Reputation: 13,911


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests