# Kithgard Enchanter trouble \[SOLVED\]

**URL:** <https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121>\
**Category:** Level Help\
**Created:** [January 15, 2019, 11:18pm UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121 "2019-01-15T23:18:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scytos](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Scytos](https://discourse.codecombat.com/u/Scytos)\
**Post date:** [January 15, 2019, 11:18pm UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/1 "2019-01-15T23:18:50Z")

</div>

```python
def moveRight():
    target = { "x": hero.pos.x + 12, "y": hero.pos.y }
    while hero.distanceTo(target) > 0:
        hero.move(target);

# Bepaal moveLeft
def moveLeft():
    target = { "x": hero.pos.x - 12, "y": hero.pos.y }
    while hero.distanceTo(target) > 0:
        hero.move(target);
# Bepaal moveUp
def moveUp():
    target = { "x": hero.pos.x, "y": hero.pos.y + 12 } 
    while hero.distanceTo(target) > 0:
        hero.move(target);
# Bepaal moveDown
def moveDown():
    target = { "x": hero.pos.x, "y": hero.pos.y - 12 }
    while hero.distanceTo(target) > 0:
        hero.move(target);

# Gebruik nu deze functies!
moveRight()`Preformatted text`
moveDown()
moveUp()
moveUp()

```

there is my code. It keeps saying that while hero.distanceTo(target) \> 0:  
hero.move(target); is wrong?  
Any help? 😃

 ![PNG](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/b/b0179450a297980126d8f023e74c0dcdfa6e9d8a.jpeg)

---

<div class="post-metadata">

**Author:** ![xython](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xython/32/7269_2.png) [@xython](https://discourse.codecombat.com/u/xython)\
**Post date:** [January 16, 2019, 11:51am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/3 "2019-01-16T11:51:04Z")

</div>

Nothing wrong with your functions. See carefully how you move:

```python
moveRight() #`Preformatted text` # comment this line
moveDown()
moveUp()
moveUp()
# and then....

```

I think you have boots not supporting the action move. And you miss the last command.

---

<div class="post-metadata">

**Author:** ![Scytos](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Scytos](https://discourse.codecombat.com/u/Scytos)\
**Post date:** [January 17, 2019, 12:23am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/4 "2019-01-17T00:23:06Z")

</div>

what do you mean? Please english because i dont know what “see carefully how do you move”  
It says my code is wrong.

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [January 17, 2019, 1:37am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/5 "2019-01-17T01:37:12Z")

</div>

> [@Scytos](#):
>
> what do you mean? Please english because i dont know what “see carefully how do you move”  
> It says my code is wrong.

I don’t get why you are asking for english? He’s replying in english already. He’s saying you have to change the movement of the player. Also, you are not using the correct boots. Buy a boot that has move() not moveXY()

---

<div class="post-metadata">

**Author:** ![Scytos](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Scytos](https://discourse.codecombat.com/u/Scytos)\
**Post date:** [January 17, 2019, 1:54am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/6 "2019-01-17T01:54:30Z")

</div>

How do I change my boot so that I have move()?

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [January 17, 2019, 1:57am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/7 "2019-01-17T01:57:14Z")

</div>

Go to game options select hero, then change your boots

---

<div class="post-metadata">

**Author:** ![Scytos](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Scytos](https://discourse.codecombat.com/u/Scytos)\
**Post date:** [January 17, 2019, 2:10am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/8 "2019-01-17T02:10:20Z")

</div>

![PNG](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/5/5e5541181ac98f27e249df3729f953cc2def93b3.jpeg)

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [January 17, 2019, 7:27am UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/9 "2019-01-17T07:27:10Z")

</div>

Oh ok, never mind. Students have set equipment. Instead of move, change it to `hero.moveXY(hero.pos.x+?,hero.pos.y+?)` Just replace the ? with the correct digit.

---

<div class="post-metadata">

**Author:** ![Scytos](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Scytos](https://discourse.codecombat.com/u/Scytos)\
**Post date:** [January 17, 2019, 1:33pm UTC](https://discourse.codecombat.com/t/kithgard-enchanter-trouble-solved/17121/10 "2019-01-17T13:33:24Z")

</div>

Thank you so much! My lord I have been stuck on that level
