How do I a turret that shoot

Get help using Construct 2

Post » Thu Apr 07, 2016 2:08 pm

let say i want to make a turret and i want to control
how many time it shoot ( 5 x )
the speed of the bullets
the frequency between each rounds
and also the acuracy
B
29
S
9
G
3
Posts: 138
Reputation: 3,804

Post » Thu Apr 07, 2016 5:16 pm

To control the amount of "ammo", you will use a Counter variable. Every time it shoots, add one to this variable. Use a condition to check if it can still shoot (Counter<5).

Speed of the bullet can be set in the speed property of the bullet behavior.

Frequency between rounds or cooldown is another application of a Counter type variable. Alternatively, you can use the Timer behavior.

Accuracy can be determined by setting the angle of the bullet. Instead of setting the bullet angle to the angle of the turret, you can use an expression such as Turret.Angle+random(-5,5).
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Thu Apr 07, 2016 6:16 pm

well can you help me if i stream ?
B
29
S
9
G
3
Posts: 138
Reputation: 3,804

Post » Thu Apr 07, 2016 6:25 pm

Sorry no.

If you try to put it together as much as you can first and run into any specific problems you can't solve, then post a capx on the forum and I, or anyone else, would be glad to help.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, dop2000 and 4 guests