Acquire target not working beyond 250(ish) pixles

Get help using Construct 2

Post » Thu Feb 20, 2014 1:04 pm

Hello,

I'm currently working from the "Template: Real Time Strategy (RTS)" template.

I've modified the standard Event sheet to;
* prevent Friendly and Enemy units from attacking each other (disabled both actions in event 2),
* I've made it so that my (selected) Friendly units will only attack Enemy units I click on by using the "acquire target" action (see block 34 and 35 under Combat group).

My problem: When I select an Enemy unit and my currently selected Friendly unit is more than around 250px from the Enemy, my Friendly just moves to the location but doesn't attack. If the Friendly is closer than 250px it will engage and attack.

I can't find anything on the Event Sheet that would be causing this. Note: I'm a total newb.

capx

I've searched the FAQ's but nothing really helped me.

Any help appreciated.

/Jamie
B
5
S
1
Posts: 34
Reputation: 364

Post » Thu Feb 20, 2014 2:29 pm

Probably need to look at range in your turret behaviour. Set at 300 at the moment...
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Fri Feb 21, 2014 1:12 am

RamPackWobble wrote:Probably need to look at range in your turret behaviour. Set at 300 at the moment...


Thanks again RamPackWobble.

When I increase the range this resolves the issue, thank you. However, the Friendly start shooting while it's way too far from the Enemy who is out of actual range for damage.

I think I might try to detect when I'm close to the enemy before I begin attacking.

Thanks again for your help, this was really useful :)
B
5
S
1
Posts: 34
Reputation: 364


Return to How do I....?

Who is online

Users browsing this forum: OBLIVION, unicornspitfire, zenox98 and 11 guests