Turrent behavior, what's wrong?

Get help using Construct 2

Post » Tue Sep 12, 2017 12:59 pm

Message: fens can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
All unit's in file has similar turret behavior. Why top unit's shoot and bottom don't?

Cap file:
https://drive.google.com/file/d/0B55PnHLHjkIGQ3lHRVRMNUsxUEU
B
5
S
1
Posts: 31
Reputation: 441

Post » Tue Sep 12, 2017 2:11 pm

Hey @fens!

Your turrets are set to target the "First in range" and they are all "in range" at creation. Thus, all units are targeting the light blue unit (UID=1), including itself. Since you check the team right after acquisition of the target, the four members of the light blue unit's team are unacquiring it. So, only the top four units fire, as they're the only ones that have a target.

Also, no matter which method you pick for targeting (First or Nearest), if you use one type of unit for both teams you'll always end up with units targeting themselves.

In short, you MUST use diferent units (or families) for different teams or else it won't work.

Hope it helps. Cheers!
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
3
Posts: 632
Reputation: 3,766

Post » Tue Sep 12, 2017 3:09 pm

Thanks a lot!
Now it makes sense )
B
5
S
1
Posts: 31
Reputation: 441


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests