How do I set up turret range

Get help using Construct 2

Post » Tue Apr 01, 2014 11:41 am

Hi Everyone

it is possible to edit turret x and y range ?
for example i want turret range x= 500 and Y only =10
so when target come in that range turret will spawn bullet

thanks for the helps
B
4
Posts: 5
Reputation: 217

Post » Sun Apr 06, 2014 4:26 pm

Hi @ashley it is possible? If no is there any other way?

Thanks
B
4
Posts: 5
Reputation: 217

Post » Sun Apr 06, 2014 4:37 pm

I don't think there is a setting for it, but you could do it with an angle check:
if turret.angle is between 0 and 90 degree set range = 10
if turret.angle is between 91 and 180 degree set range = 200

Or whatever you need. You ofc just have to use the correct angles, but not sure its exactly what you are after.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Sun Apr 06, 2014 4:53 pm

Hi.. @nimos100 .. i actually try to make tower defense like plants vs zombie .. it is possible to use this way?

Thanks
B
4
Posts: 5
Reputation: 217

Post » Sun Apr 06, 2014 4:59 pm

Yeah should be possible if you set the angle limit low enough. I haven't really made a tower defence game where turret ain't able to rotate, so there might be a better way to do it, with just the line of sight setting and turning rotation off for them. But maybe someone else can give a bit better answer to it.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Sun Apr 06, 2014 7:38 pm

Its working, thank you very much :)
B
4
Posts: 5
Reputation: 217


Return to How do I....?

Who is online

Users browsing this forum: ezgaming420, marcinkowski, plinkie and 12 guests