# Forest Fire Dancing feedback

**URL:** <https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787>\
**Category:** Adventurer\
**Created:** [November 25, 2015, 11:37pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787 "2015-11-25T23:37:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/zuf/32/34897_2.png) [@zuf](https://discourse.codecombat.com/u/zuf)\
**Post date:** [November 25, 2015, 11:37pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/1 "2015-11-25T23:37:10Z")

</div>

An issue: It was also possible to pass with just  
`self.moveXY(44,22)`  
This causes Tharin to walk to the right, but not as far as the right cross. Then the fireballs keep firing from the same positions for the whole duration and never hit. I don’t think there are any blind spots between the crosses (that avoid fireballs on both sides) but the issue is that the checkpoint does not change while standing between crosses.  
Edit: increasing the cpTolerance probably won’t help but maybe there could be something that prevents the same emitters from firing too many times in a row.

I’m assuming moveXY is allowed for this level since it’s in the forest.

---

<div class="post-metadata">

**Author:** ![GundericusTheMighty](https://avatars.discourse-cdn.com/v4/letter/g/bbce88/32.png) [@GundericusTheMighty](https://discourse.codecombat.com/u/GundericusTheMighty)\
**Post date:** [November 26, 2015, 2:57am UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/2 "2015-11-26T02:57:36Z")

</div>

I passed once I unequipped my speed ring. Could it be repaired so that heroes with higher speed could pass?

---

<div class="post-metadata">

**Author:** ![ant](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ant/32/3362_2.png) [@ant](https://discourse.codecombat.com/u/ant)\
**Post date:** [November 26, 2015, 9:04am UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/3 "2015-11-26T09:04:43Z")

</div>

Same here. I haven’t tried with a “naked” Pender, though 😉

---

<div class="post-metadata">

**Author:** ![Msakr](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Msakr](https://discourse.codecombat.com/u/Msakr)\
**Post date:** [November 26, 2015, 4:06pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/4 "2015-11-26T16:06:08Z")

</div>

1. This is a frustrating problem for higher speed characters. For the record, it can be done with the ring of speed and my normal boots equipped (Anya). I’d recommend adding the following hint to the level description, however: “Note: If your character is a fast runner, you might need to adjust the target you are running towards on each side in order to stay safe.”
2. I tried an alternative solution but the fireballs were not showing up with either findMissle command. I’m not quite sure why that was. One possible hint as to why that is not working is that the fireballs are not selectable when the game is paused. If at all possible, designate the fireballs as missles so that other solutions are possible.
3. I can verify that Zuf’s solution still works.
4. Just moving to (37, 22) and/or (37,27) works too. The fireballs pass harmlessly on either side.

Coding suggestion/concept:  
a.Set up 3 functions which test if the character is in a region (left, right, center). The regions should overlap slightly so the stand in the middle trick doesn’t work.

b. If there is a gem to the left and the player is not in the right region after a pause of \_\_,  
generate a fireball using the player’s x coordinate and a center fireball.  
If player is in right region, generate center and left fireballs. Once they are fired and a pause of \_\_, remove gem.

c. If there is a gem to the right and the player is not in the left region after a pause of \_\_,  
generate a fireball using the player’s x coordinate and a center fireball.  
If player is in left region, generate center and right fireballs. Once they are fired and after a pause of \_\_, remove gem.

d. If there is no gem and the player is not in the center, just generate one fireball using the player’s current x coordinate. (If the player is moving, they should be safe as by the time the fireball gets there, they won’t be there anymore … ).

---

<div class="post-metadata">

**Author:** ![Hinkle](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/hinkle/32/3967_2.png) [@Hinkle](https://discourse.codecombat.com/u/Hinkle)\
**Post date:** [November 27, 2015, 5:48am UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/5 "2015-11-27T05:48:54Z")

</div>

I was able to beat it, although I had to unequip the speed ring. Can it just be restricted for the level? Seems like the easiest fix. Otherwise, running the fireballs and gem appearance based on time would work too, as the player should stay on the correct spot as long as the gem is present (or missing).

In other news, building a fence does not stop fireballs from killing you…

---

<div class="post-metadata">

**Author:** ![Serg](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/serg/32/3260_2.png) [@Serg](https://discourse.codecombat.com/u/Serg)\
**Post date:** [November 27, 2015, 5:54pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/6 "2015-11-27T17:54:24Z")

</div>

Hey everyone,

I went through and adjusted the Forest Fire Dancing level so the firebolts adjust their speed based on the hero’s speed, so no matter which hero and items you use, you should be able to beat it!

I also implemented a fix for the unintended solution.

Forest Fire Dancing is meant to be an introduction to nested if loops, so the solution is meant to be easy.

Thanks everyone for your feedback! Feel free to test it again and tell us if you see anything wrong.

---

<div class="post-metadata">

**Author:** ![Lecho\_L\_P](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Lecho\_L\_P](https://discourse.codecombat.com/u/Lecho_L_P)\
**Post date:** [December 21, 2015, 6:54pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/7 "2015-12-21T18:54:00Z")

</div>

Can someone PLEASE HELP ME WITH THIS!!!

---

<div class="post-metadata">

**Author:** ![ChronistGilver](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chronistgilver/32/3778_2.png) [@ChronistGilver](https://discourse.codecombat.com/u/ChronistGilver)\
**Post date:** [December 21, 2015, 7:48pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/8 "2015-12-21T19:48:01Z")

</div>

Of course we can help you, but you need to let us know of your problem first. Also push your code, formatted properly, of course.

---

<div class="post-metadata">

**Author:** ![Night\_Walker](https://avatars.discourse-cdn.com/v4/letter/n/54ee81/32.png) [@Night\_Walker](https://discourse.codecombat.com/u/Night_Walker)\
**Post date:** [January 13, 2016, 8:06pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/9 "2016-01-13T20:06:34Z")

</div>

It’s working like a charm!!

---

<div class="post-metadata">

**Author:** ![Night\_Walker](https://avatars.discourse-cdn.com/v4/letter/n/54ee81/32.png) [@Night\_Walker](https://discourse.codecombat.com/u/Night_Walker)\
**Post date:** [January 13, 2016, 8:14pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/10 "2016-01-13T20:14:48Z")

</div>

Are you sure you are entering the right “x” and “y” values?

They are (46, 22), (34, 22) and (40, 22)

My first mistake was that i was using (45, 22) for “right”. That produced that the three bonfires shoot simultaneously and I got killed.-

(Sorry for any involuntary grammar or spelling mistake. Not a native speaker and a bit rusted english proficiency))

---

<div class="post-metadata">

**Author:** ![EArm](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@EArm](https://discourse.codecombat.com/u/EArm)\
**Post date:** [March 1, 2016, 4:07pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/11 "2016-03-01T16:07:29Z")

</div>

Thanks for this - This answer solved it for me 🙂  
the mark where the gem was supposed to stop on the right was x = 45 but it actually stops on x = 46 so if you’re coding for 45 it’s never true that it is 'on the right’  
I racked my brains for some time as I was sure my code was correct - and it was!! The marker in the picture should have been under the stone.  
Once I changed it to x = 46 (where the gem actually sat) it ran properly

---

<div class="post-metadata">

**Author:** ![Grzegorz\_Rybczynski](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@Grzegorz\_Rybczynski](https://discourse.codecombat.com/u/Grzegorz_Rybczynski)\
**Post date:** [May 13, 2016, 4:35pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/12 "2016-05-13T16:35:03Z")

</div>

I have problem with: Line 2: evilstone is not defined. What? in my line 2 is " while (true) {

while (true) {  
evilstone = this.findNearestItem();  
if (evilstone) {  
pos = evilstone.pos;  
if (pos.x == 34) {  
// If the evilstone is on the left, go to the right side.  
this.moveXY(46, 22);  
} else {  
// If the evilstone is on the right, go to the left side.  
this.moveXY(34, 22);  
}  
} else {  
// If there’s no evilstone, go to the middle.  
this.moveXY(40, 22);  
}  
}

---

<div class="post-metadata">

**Author:** ![Serg](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/serg/32/3260_2.png) [@Serg](https://discourse.codecombat.com/u/Serg)\
**Post date:** [May 13, 2016, 4:44pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/13 "2016-05-13T16:44:58Z")

</div>

Hi, you need to use:

```python
var evilstone = this.findNearestitem();

```

I just fixed the initial sample code so people in the future won’t run into this issue!

---

<div class="post-metadata">

**Author:** ![Grzegorz\_Rybczynski](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@Grzegorz\_Rybczynski](https://discourse.codecombat.com/u/Grzegorz_Rybczynski)\
**Post date:** [May 13, 2016, 4:49pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/14 "2016-05-13T16:49:10Z")

</div>

Thanks, and need var pos, no pos alone 🙂

---

<div class="post-metadata">

**Author:** ![Serg](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/serg/32/3260_2.png) [@Serg](https://discourse.codecombat.com/u/Serg)\
**Post date:** [May 13, 2016, 4:52pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/15 "2016-05-13T16:52:08Z")

</div>

Haha, thank you, sorry about that, fixing it now.

---

<div class="post-metadata">

**Author:** ![Grzegorz\_Rybczynski](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@Grzegorz\_Rybczynski](https://discourse.codecombat.com/u/Grzegorz_Rybczynski)\
**Post date:** [May 13, 2016, 4:54pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/16 "2016-05-13T16:54:57Z")

</div>

No problem, for me - this is good lesson for the future 😃

---

<div class="post-metadata">

**Author:** ![Robosword](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/robosword/32/4875_2.png) [@Robosword](https://discourse.codecombat.com/u/Robosword)\
**Post date:** [October 9, 2016, 1:01pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/17 "2016-10-09T13:01:26Z")

</div>

Can someone tell me how to beat this level because ive tried so many things and i cant get it

---

<div class="post-metadata">

**Author:** ![dwhittaker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dwhittaker/32/2114_2.png) [@dwhittaker](https://discourse.codecombat.com/u/dwhittaker)\
**Post date:** [November 4, 2016, 1:21am UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/18 "2016-11-04T01:21:32Z")

</div>

I just had a student run to behind the fires in order to escape.

 ![](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/7/718fab370570ce59fb10086137da8f246671f328.png)

Maybe adding 2 more fire pits that fire down the middle lanes?

---

<div class="post-metadata">

**Author:** ![BENJAMIN\_YU](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BENJAMIN\_YU](https://discourse.codecombat.com/u/BENJAMIN_YU)\
**Post date:** [December 11, 2018, 11:22pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/19 "2018-12-11T23:22:55Z")

</div>

![36%20PM](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/c/c9d46ea21de5c9ba1522c814e940910a7e21e2f4.png) Help!!! This is my code. What is wrong???

---

<div class="post-metadata">

**Author:** ![BENJAMIN\_YU](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@BENJAMIN\_YU](https://discourse.codecombat.com/u/BENJAMIN_YU)\
**Post date:** [December 11, 2018, 11:37pm UTC](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787/20 "2018-12-11T23:37:37Z")

</div>

Somebody, Help!!!

[Next page](https://discourse.codecombat.com/t/forest-fire-dancing-feedback/5787.md?page=2)
