# HELP! 2nd level won't work

**URL:** <https://forum.makecode.com/t/help-2nd-level-wont-work/13661>\
**Category:** Help\
**Created:** [May 19, 2022, 6:36pm UTC](https://forum.makecode.com/t/help-2nd-level-wont-work/13661 "2022-05-19T18:36:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starfox2k](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@Starfox2k](https://forum.makecode.com/u/Starfox2k)\
**Post date:** [May 19, 2022, 6:36pm UTC](https://forum.makecode.com/t/help-2nd-level-wont-work/13661/1 "2022-05-19T18:36:52Z")

</div>

> **[2lvel arkan](https://arcade.makecode.com/20324-00564-54527-36737)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here is my game. The first level works great. When the second level starts. The blocks will not get destroyed. Like the collisions won’t restart, only the tilemap. What am I doing wrong? ☹

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [May 23, 2022, 4:46pm UTC](https://forum.makecode.com/t/help-2nd-level-wont-work/13661/2 "2022-05-23T16:46:46Z")

</div>

Hi, hope this can help:

- These creating sprite from tiles block should be done again when new level, so I moved them into your “StartLevel” funciton.
- The logic for check next level should only once for each level, so moved into “on projectile overlap enemy” from “on game update”.
- And BTW, changed checking the enemy total count instead of the score, so diff level can have diff enemy count without change code again.

> **[2lvel arkancd](https://arcade.makecode.com/90320-76547-95486-97800)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Starfox2k](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@Starfox2k](https://forum.makecode.com/u/Starfox2k)\
**Post date:** [May 23, 2022, 5:54pm UTC](https://forum.makecode.com/t/help-2nd-level-wont-work/13661/3 "2022-05-23T17:54:21Z")

</div>

Thank you SO MUCH! 😃
