Airbender issue

Help me please
its my code:

while True:
    skeleton = hero.findNearest(hero.findByType('skeleton'))
    if skeleton:
        hero.forcePush(skeleton, Vector(0, 1), 1)

What level is this on? Also, what hero and equipment are you using?

Edit: Please change to #level-help category for the discourse.

It’s one of the Ilia levels: CodeCombat - Coding games to learn Python and JavaScript?

I tried your code and your are pushing the skeletons up… maybe try using Vector.subtract(something.pos.x,something.pos.y)

And maybe try something less than 1. 0.5, 0.6, you get it.

Yes its level with Ilia
Here is my equip:

are you think than i need to write vector.subtract instead forcePush or write them together ?

Write them together

20chars

Don’t use while true, just do this:

skeleton = hero.findNearest(hero.findByType('skeleton'))
hero.forcePush(skeleton, Vector(0, 1), 1)
skeleton = hero.findNearest(hero.findByType('skeleton'))
hero.forcePush(skeleton, Vector(_, _), _)
skeleton = hero.findNearest(hero.findByType('skeleton'))
hero.forcePush(skeleton, Vector(_, _), _)