# Hero's Journey 3rd level in game development

**URL:** <https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963>\
**Category:** Level Help\
**Created:** [September 27, 2022, 6:05pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963 "2022-09-27T18:05:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheCelestial](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecelestial/32/31089_2.png) [@TheCelestial](https://discourse.codecombat.com/u/TheCelestial)\
**Post date:** [September 27, 2022, 6:05pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/1 "2022-09-27T18:05:31Z")

</div>

This Is The Code Im Using But I cant fiqure out whats wrong

```python
game:spawnPlayerXY("captain", 10, 10)
game.addMoveGoalXY(30, 30)
game.spawnXY("fence", 36, 30)

```

---

<div class="post-metadata">

**Author:** ![TheCodingCrusader22](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecodingcrusader22/32/46084_2.png) [@TheCodingCrusader22](https://discourse.codecombat.com/u/TheCodingCrusader22)\
**Post date:** [September 27, 2022, 6:24pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/2 "2022-09-27T18:24:09Z")

</div>

you need to add the `game.setMoveGoalXY()` comand

---

<div class="post-metadata">

**Author:** ![TheCodingCrusader22](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecodingcrusader22/32/46084_2.png) [@TheCodingCrusader22](https://discourse.codecombat.com/u/TheCodingCrusader22)\
**Post date:** [September 27, 2022, 6:26pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/3 "2022-09-27T18:26:26Z")

</div>

> [@TheCelestial](#):
>
> ```python
> game:spawnPlayerXY("captain", 10, 10)
> 
> ```

you also need game. not game:

---

<div class="post-metadata">

**Author:** ![TheCelestialsAlt](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecelestialsalt/32/31111_2.png) [@TheCelestialsAlt](https://discourse.codecombat.com/u/TheCelestialsAlt)\
**Post date:** [September 27, 2022, 7:40pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/4 "2022-09-27T19:40:13Z")

</div>

![Screenshot (188)](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/f/7/f73a625ce17e1ae99f91ac635ecbd5d01d6bd240.jpeg)

i don’t see that method but i did change the game: to game.

also this is lua sorry forgot to mention that

---

<div class="post-metadata">

**Author:** ![TheCodingCrusader22](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thecodingcrusader22/32/46084_2.png) [@TheCodingCrusader22](https://discourse.codecombat.com/u/TheCodingCrusader22)\
**Post date:** [September 27, 2022, 9:58pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/5 "2022-09-27T21:58:36Z")

</div>

![Screenshot 2022-09-27 165805](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/c/0/c0021862a46dc6c3422acd0c932212485793b790.png)  
oh i ment add

---

<div class="post-metadata">

**Author:** ![Jason\_king\_lin](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jason\_king\_lin](https://discourse.codecombat.com/u/Jason_king_lin)\
**Post date:** [September 28, 2022, 6:32am UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/6 "2022-09-28T06:32:55Z")

</div>

What is the problem?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [September 28, 2022, 6:33pm UTC](https://discourse.codecombat.com/t/heros-journey-3rd-level-in-game-development/33963/7 "2022-09-28T18:33:00Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
