restrict a pinned gun to a preset angle of fire

Discussion and feedback on Construct 2

Post » Fri Jan 13, 2017 9:44 pm

I haven't been able to get my gun to use only a restricted field of view for targeting. For example there is an enemy behind the vehicle the gun is pinned to and once you pass this enemy the gun still continues to track to the rear which is not what I need. I tried various ways using the turret actions but still have the issue of it remaining pointing in the last position it fired from, I need the gun to return to the forward parked position as it was before it had line of sight to an enemy. A pretty simple setup just a vehicle with a pinned gun that can only traverse about 45 degrees maximum. I would use one both sides a left and right. Does anyone have any recommendation how to accomplish this knowing it can only turn 45 degrees and then back to 0 or forward. Everything works fine except this return to front. I tried the turret and then tried the line of sight actions still it does not return to the front. :?:

Image
B
7
S
1
Posts: 7
Reputation: 396

Post » Sat Jan 14, 2017 9:48 pm

couldawoulda wrote:I haven't been able to get my gun to use only a restricted field of view for targeting. For example there is an enemy behind the vehicle the gun is pinned to and once you pass this enemy the gun still continues to track to the rear which is not what I need. I tried various ways using the turret actions but still have the issue of it remaining pointing in the last position it fired from, I need the gun to return to the forward parked position as it was before it had line of sight to an enemy. A pretty simple setup just a vehicle with a pinned gun that can only traverse about 45 degrees maximum. I would use one both sides a left and right. Does anyone have any recommendation how to accomplish this knowing it can only turn 45 degrees and then back to 0 or forward. Everything works fine except this return to front. I tried the turret and then tried the line of sight actions still it does not return to the front. :?:

Image




Better off in the 'how do I' section

Anyway I hope this is something along the lines that you were looking for.

Browser example

http://www.sizzle-games.com/turret

Capx of example

http://www.sizzle-games.com/turret.capx
Bushy Ball\Boatman Bill\Sticky Web\Snake

Image ImageImageImage

During the gold rush it was a good time to be in the pick and shovel business
B
46
S
14
Posts: 252
Reputation: 5,352

Post » Sun Jan 15, 2017 3:46 pm

Restricted.
More targets.
More turrets.
+ Obstacles.

https://www.dropbox.com/s/lquf2babrm7bq ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover, Tjums and 18 guests