Turret question

Get help using Construct 2

Post » Tue Jan 28, 2014 8:26 am

I have a space ship with non rotating turret. I need to shoot bullet from turret when target in sight with period of two seconds(1. on the pic).

When i use turret behaviour with "Rotate:no" it shoots only when target zero imagepoint get on one line with angle of turret(2. on the pic)

When i use Line of sight behaviour, its shoots without period. (3. on the pic)

Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Tue Jan 28, 2014 8:29 am

i tried some tricks but it didnt works
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Tue Jan 28, 2014 8:45 am

If your turret doesn't turn, then the turret behavior won't be usable as you like it.

The solution you tried seems like the way to go. I would just add a timer behavior on your gun. Your events then become :
- first event : same triggers, actions being "set reloading to 1, start timer (Gun_Reload_time), spawn bullet".
- second event : the trigger becomes "on timer run out on the gun", set reloading to 1.
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Tue Jan 28, 2014 9:08 am

Now it works fine, thanks a lot)
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, dop2000, evillair, Fenix18, tarek2 and 48 guests