[SOLVED]How do I limit Turret Arc

Get help using Construct 2

Post » Thu Oct 01, 2015 10:42 pm

I would also like to know how to limit the Turret Arc to say 90 degrees. I have done some searching and I believe that this Thread had the solution but the CAPX example was removed: solved-turret-behaviour-arc-limit_t78750

Thanks.
Last edited by Badmiracle on Fri Oct 02, 2015 8:19 am, edited 1 time in total.
B
84
S
27
G
9
Posts: 89
Reputation: 9,613

Post » Fri Oct 02, 2015 6:14 am

For each turret, check its angle

If Turret.Angle > X => Set Turret.Angle to X.

Do the same for the other side of the arc.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Fri Oct 02, 2015 7:04 am

any good to you ?


https://goo.gl/jzkHSP
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Fri Oct 02, 2015 8:20 am

Silverforce wrote:For each turret, check its angle

If Turret.Angle > X => Set Turret.Angle to X.

Do the same for the other side of the arc.


RamPackWobble wrote:any good to you ?


https://goo.gl/jzkHSP


Both would work. Thank you.
B
84
S
27
G
9
Posts: 89
Reputation: 9,613


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests