Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Goalkeeper level advise

Where did you say what peasant is in the variable friend?

Andrei

do you have any glasses that allows hero.findByType

1 Like

i need serious help:

# Command the peasants to prevent the ogres from scoring.
# The fireball is type "ball".
while True:
    friends = hero.findFriends()
    friendIndex = 0
    enemies = hero.findEnemies()
    enemyIndex = 0
    while friendIndex < len(friends):
        friend = friends[friendIndex]
        while enemyIndex < len(enemies):
            enemy = enemies[enemyIndex]
            move = enemy.pos.x - 50
            enemyIndex += 1
        hero.command(friend, "move", )

i don’t know what to put in the move position place.
wait
no need for now
i need help now
nope i finished the level

So, you don’t need help anymore…? o-o

Rachel