# \[Adventurer\] Seeing Is Believing

**URL:** https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033
**Category:** Adventurer
**Created:** [July 25, 2017, 4:54pm UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033 "2017-07-25T16:54:50Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Catsync](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/catsync/32/6431_2.png) [@Catsync](https://discourse.codecombat.com/u/Catsync)
#### Post date: [July 25, 2017, 4:54pm UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/1 "2017-07-25T16:54:50Z")

</div>

The level [Seeing is Believing](https://codecombat.com/play/level/seeing-is-believing) is ready for playtesting.

This level is in the Game Dev 1 campaign, it introduces the `ui.track()` command for showing game information to the player.

---

<div class="post-metadata">

### Author: ![RobAnybody](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@RobAnybody](https://discourse.codecombat.com/u/RobAnybody)
#### Post date: [July 26, 2017, 9:29am UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/2 "2017-07-26T09:29:12Z")

</div>

Python default code

```python
hero = game.spawnHeroXY(20, 20, "samurai")

```

In description

```python
game.spawnHeroXY("captain", 24, 37)

```

---

<div class="post-metadata">

### Author: ![RobAnybody](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@RobAnybody](https://discourse.codecombat.com/u/RobAnybody)
#### Post date: [July 26, 2017, 9:30am UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/3 "2017-07-26T09:30:19Z")

</div>

And there some problem. Hero moving, but not attacking.

---

<div class="post-metadata">

### Author: ![Mr-Borges](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/mr-borges/32/6499_2.png) [@Mr-Borges](https://discourse.codecombat.com/u/Mr-Borges)
#### Post date: [July 26, 2017, 10:18am UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/4 "2017-07-26T10:18:36Z")

</div>

In Game Dev levels you make a game, and then play the game. To play the game you click on enemies to attack them.

---

<div class="post-metadata">

### Author: ![Mr-Borges](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/mr-borges/32/6499_2.png) [@Mr-Borges](https://discourse.codecombat.com/u/Mr-Borges)
#### Post date: [July 26, 2017, 10:22am UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/5 "2017-07-26T10:22:50Z")

</div>

Nice level.

> [@RobAnybody](#):
>
> hero = game.spawnHeroXY(20, 20, “samurai”)

weird, looks like both of these work

```python
hero = game.spawnHeroXY(20,20,"samurai")

```

```python
hero = game.spawnHeroXY("samurai",20,20)

```

but not this (I had to try)

```python
hero = game.spawnHeroXY(20,"samurai",20)

```

and this just ignores the last 2 arguments

```python
hero = game.spawnHeroXY(20,20,"samurai",40,40)

```

---

<div class="post-metadata">

### Author: ![Catsync](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/catsync/32/6431_2.png) [@Catsync](https://discourse.codecombat.com/u/Catsync)
#### Post date: [July 26, 2017, 2:11pm UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/6 "2017-07-26T14:11:22Z")

</div>

Thanks for the reports!

I’ve fixed the `spawnHeroXY` argument order to be the intended way 🙂

Not sure about the not attacking - it seems to be working okay for me. The usual cause of not being able to move/attack with the hero in Game Dev is if the student uses `spawnXY` instead of `spawnHeroXY` for the hero.

---

<div class="post-metadata">

### Author: ![Catsync](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/catsync/32/6431_2.png) [@Catsync](https://discourse.codecombat.com/u/Catsync)
#### Post date: [July 26, 2017, 6:24pm UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/7 "2017-07-26T18:24:13Z")

</div>

> [@RobAnybody](#):
>
> And there some problem. Hero moving, but not attacking.

Ah, I see the problem.

The comment said to change the hero’s `attack` but it should’ve said `attackDamage`.

It looks like you did `hero.attack = 20000`.

Try using `hero.attackDamage` instead. I’ve updated the comments to be more correct.

---

<div class="post-metadata">

### Author: ![RobAnybody](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@RobAnybody](https://discourse.codecombat.com/u/RobAnybody)
#### Post date: [July 27, 2017, 8:07am UTC](https://discourse.codecombat.com/t/adventurer-seeing-is-believing/12033/8 "2017-07-27T08:07:10Z")

</div>

Yes. Thats it. Thanks.
