Rotation Speed on Set Angle

Get help using Construct 2

Post » Fri Aug 10, 2012 8:44 pm

Oh, thanks for the example. I'll have to look back over my code and see what I did wrong. Thanks again for the help :).
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Fri Aug 10, 2012 9:38 pm

OK, so I am running into a bit of a bug with this. It worked great with just one object, however I have some different object I want to use this same approach too. Here is a modified CAPX of yours that I added a new object too, and I am using the same code. It seems that once you get into the range of the new object, it no longer checks the DISTANCE element, only the angle of the others. Not sure if I am making sense.
http://www.edfarias.com/games/turret2.capx

I shortened the range of all objects to test this out, but as you move around I think you will notice what is happening.

Thanks again.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Fri Aug 10, 2012 9:42 pm

Actually, I think I fixed it by make sub events of the sub event.

B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Thu Dec 13, 2012 9:26 pm

Great post, this is really simple and efficient way to make turrets! One question though, how would you add 'field of fire' to the turrets? Like a rule that turret can only fire in objects that are inside cone 90 degrees in front of it?
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Previous

Return to How do I....?

Who is online

Users browsing this forum: heliogame and 20 guests