How to stop or outspeed enemy going to its base with ressource ?

User avatar
Tchey
Script
Script
Posts: 21
Contact:

How to stop or outspeed enemy going to its base with ressource ?

Post#1 » 07 Jul 2017, 18:40

Hello,

I have trouble to make my AI do the following :

- if any enemy is carrying resource,
- go within enemy base short range
- shot the carrier

So the idea is to rush to the enemy base so i can then stand, and shot the enemy to death while it moves slowly to score.

I tried several compo, but i always see my bots "glitch", trying to catch the carrier, charge fire, cancel because the carrier is moving away, move to catch the carrier, etc, until the carrier secures the resource and i can eventually destroy it.

How should i do that ?
Mon blog indécent sur les jeux indé... Jeux1d100.net

harthag
Automaton
Automaton
Posts: 197

Re: How to stop or outspeed enemy going to its base with ressource ?

Post#2 » 07 Jul 2017, 18:54

The most common tactic I see used effectively is move to within close range of carrier, start attacking, then use the attack enemy that I'm attacking to avoid interrupting the attack. Moving to the base itself is less common, because it usually takes your bot in to the middle of the enemy firestorm where it dies long before it cam start attacking the carrier

User avatar
Ritter Runkel
Neural Network
Neural Network
Posts: 498

Re: How to stop or outspeed enemy going to its base with ressource ?

Post#3 » 09 Jul 2017, 00:34

I second hartag. But if you want to go to Enemy base then it should be possible with the nodes in that order:

Move to Enemy base not short range ... Shoot ball carrier

But I'm sure it's not the preferred way to do so.

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: How to stop or outspeed enemy going to its base with ressource ?

Post#4 » 09 Jul 2017, 04:39

I do: If All Enemy Carries Resource, Move To EnemyBase. If Self Idle and Enemy Base is Short Range (that means I'm on the Base), shoot Carriers until dead.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

Return to “Questions”

Who is online

Users browsing this forum: No registered users and 1 guest