How do I create a player-controlled turret

Get help using Construct 2

Post » Mon May 26, 2014 8:04 pm

Okay! New version inbound in t-minus 5, 4, 3, 2......

BLAM.

So move your character with the arrow keys and jump in or out of a turret using the space bar.
You do not have the required permissions to view the files attached to this post.
Visit me at EgoAnt.com
B
51
S
7
G
7
Posts: 78
Reputation: 6,408

Post » Mon May 26, 2014 8:04 pm

Oh! One other thing. Right now the player has to be overlapping the turret for it to work.
Visit me at EgoAnt.com
B
51
S
7
G
7
Posts: 78
Reputation: 6,408

Post » Tue May 27, 2014 8:11 pm

Great! Thanks a lot! One last question though. Do you know if it's possible to keep the turrets shooting even if the player isn't controlling them?

Other than that, it's all good! I'm really glad you were able to help.
B
4
Posts: 25
Reputation: 256

Post » Tue May 27, 2014 10:20 pm

You can set a boolean local variable called something like SHOOTING and set it to true when the player starts the turret shooting. Then, use it as the condition for the turrets shoot action.
B
39
S
12
G
11
Posts: 331
Reputation: 7,727

Post » Mon Feb 29, 2016 7:38 pm

EgoAnt wrote:What type of control do you want? Do you want the turret to point at the mouse or turn with the keyboard?


hi Egoant is it posible you can make an example with the turret to point at the mouse, i have set "set angle toward (mouse.x,mouse.y) i just need the turrent to stop rotating and remain fixed if the mouse causes the angle to be above say 260 or below 45.
Also it will need need to work when the turrent faces the other direction while is mirrored, thanks a lot in advance
B
38
S
22
G
63
Posts: 235
Reputation: 35,558

Previous

Return to How do I....?

Who is online

Users browsing this forum: Fradno, marcinkowski, tarek2, Yahoo [Bot] and 10 guests