Bombing Run Help

@X95 Did you try out the code I posted in question #2?

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        vector=Vector.add(enemy.pos,hero.pos)
        hero.say( "Enemy x=" + enemy.pos.x + " Enemy y=" + enemy.pos.y )
        hero.say( "Hero x=" + hero.pos.x + " Hero y=" + hero.pos.y )
        hero.say( "vector x=" + vector.x + " Hero y=" + vector.y )
1 Like

yes and I do it :grinning:

1 Like

So does adding the Vectors give you the correct result?

1 Like

yes thanks :grinning:

1 Like