# ! need help (backwood forest)!\[SOLVED\]

**URL:** <https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742>\
**Category:** Level Help\
**Created:** [May 7, 2021, 6:09pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742 "2021-05-07T18:09:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:09pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/1 "2021-05-07T18:09:43Z")

</div>

Apperently, my code doesnt seem to be right.  
Can somebody help ?

```python
 function ambushAttack(target) {
    // Attack the target if it exists and return to the mark.
    // Write the function:
     if (ogre) {
        hero.attack(ogre);
    }
    else {
        hero.moveXY(52, 36);
    }
}

while(true) {
    var ogre = hero.findNearestEnemy();
    ambushAttack(ogre);
}

```

Why does it go TO the Tomb instead of going back to the red Mark ?

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:12pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/2 "2021-05-07T18:12:31Z")

</div>

WHat level is it???

---

<div class="post-metadata">

**Author:** ![enPointe77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/enpointe77/32/43632_2.png) [@enPointe77](https://discourse.codecombat.com/u/enPointe77)\
**Post date:** [May 7, 2021, 6:13pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/3 "2021-05-07T18:13:51Z")

</div>

Is it a subscriber level?

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:17pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/4 "2021-05-07T18:17:40Z")

</div>

It is the level Mail Interceptor

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:18pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/5 "2021-05-07T18:18:02Z")

</div>

@enPointe77 yes it is

---

<div class="post-metadata">

**Author:** ![enPointe77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/enpointe77/32/43632_2.png) [@enPointe77](https://discourse.codecombat.com/u/enPointe77)\
**Post date:** [May 7, 2021, 6:20pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/6 "2021-05-07T18:20:19Z")

</div>

Oh, I can’t look at my code then cause I don’t have one.

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:22pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/7 "2021-05-07T18:22:05Z")

</div>

@enPointe77 Oh, no Problem. Thanks Anyway.

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:22pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/8 "2021-05-07T18:22:35Z")

</div>

Is it subscriber???

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:23pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/9 "2021-05-07T18:23:24Z")

</div>

@thebagel Also here is a Screenshot if you need it.

 ![Ekran Resmi 2021-05-07 20.19.16](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/a/6/a6c0cbf60946205dbd191238c7cc33656235730c.jpeg)

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:24pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/10 "2021-05-07T18:24:59Z")

</div>

@thebagel yes

#Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review [this topic](https://discourse.codecombat.com/t/welcome-to-codecombat-discourse-forums/15601), which shows all essentials of this board! Thanks#

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:27pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/11 "2021-05-07T18:27:49Z")

</div>

Oh sorry, then I can’t help so sorry i am non sub

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:28pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/12 "2021-05-07T18:28:05Z")

</div>

But I still might be able to help, what is the goal?

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:28pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/13 "2021-05-07T18:28:26Z")

</div>

Ok. No problem

Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review [this topic](https://discourse.codecombat.com/t/welcome-to-codecombat-discourse-forums/15601), which shows all essentials of this board! Thanks!

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:29pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/14 "2021-05-07T18:29:36Z")

</div>

The goal is to defeat all the ogre messengers

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:30pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/15 "2021-05-07T18:30:00Z")

</div>

Ok. and the messengers are the 4 on the left right

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:30pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/16 "2021-05-07T18:30:41Z")

</div>

No actually. Wait, im going to send a pic of the messengers

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:31pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/17 "2021-05-07T18:31:08Z")

</div>

Ok. and I don’t think anything is wrong with your code though.

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [May 7, 2021, 6:32pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/18 "2021-05-07T18:32:12Z")

</div>

And what is the problem. like are you dying or…?

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:32pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/19 "2021-05-07T18:32:36Z")

</div>

Here they are :

 ![Ekran Resmi 2021-05-07 20.19.18](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/5/6/5690b9931dd30b13494e187ff3eced63f2fe8ec7.jpeg)  
 ![Ekran Resmi 2021-05-07 20.31.10](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/8/7/87e78e6ece734d6057e97f38d0b4faa6eaeb3908.jpeg)

---

<div class="post-metadata">

**Author:** ![XxX\_Mem0\_XxX](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xxx_mem0_xxx/32/22397_2.png) [@XxX\_Mem0\_XxX](https://discourse.codecombat.com/u/XxX_Mem0_XxX)\
**Post date:** [May 7, 2021, 6:33pm UTC](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742/20 "2021-05-07T18:33:11Z")

</div>

Yes im going and fighting the ogres instead of going back to the red Mark

[Next page](https://discourse.codecombat.com/t/need-help-backwood-forest-solved/28742.md?page=2)
