# How do I add levels in a top-down spaceshooter game?

**URL:** <https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998>\
**Category:** Help\
**Created:** [October 20, 2020, 11:05pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998 "2020-10-20T23:05:34Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [January 14, 2021, 5:35am UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/21 "2021-01-14T05:35:34Z")

</div>

Code?

---

<div class="post-metadata">

**Author:** ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)\
**Post date:** [January 14, 2021, 3:46pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/22 "2021-01-14T15:46:46Z")

</div>

Make an array using the ‘add to end’ block, then get the tilemaps extension and add the maps uning the ‘tilemaps’ V-type block, and then use ‘input number’ from game as a level select

---

<div class="post-metadata">

**Author:** ![rossana](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rossana](https://forum.makecode.com/u/rossana)\
**Post date:** [January 14, 2021, 6:19pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/23 "2021-01-14T18:19:53Z")

</div>

Im not using tilemaps, those were easier with tilemaps portals, but Couldnt with just background image…could that be why?  
It does change level, just jumps from the first to the 3d ???

thanks for your support

---

<div class="post-metadata">

**Author:** ![rossana](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rossana](https://forum.makecode.com/u/rossana)\
**Post date:** [January 14, 2021, 6:21pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/24 "2021-01-14T18:21:57Z")

</div>

[https://makecode.com/\_HrwHqVdFHf5b](https://makecode.com/_HrwHqVdFHf5b) sorry here is my code… it jumps on level, ignoring one, and the ships doesnt change their image (just one, but rest doesnt).

---

<div class="post-metadata">

**Author:** ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)\
**Post date:** [January 14, 2021, 8:40pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/25 "2021-01-14T20:40:11Z")

</div>

star wars YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!!!

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [January 17, 2021, 10:57pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/26 "2021-01-17T22:57:49Z")

</div>

This is a great game, well done.

---

<div class="post-metadata">

**Author:** ![rossana](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rossana](https://forum.makecode.com/u/rossana)\
**Post date:** [January 18, 2021, 4:05pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/27 "2021-01-18T16:05:04Z")

</div>

Hi, How can I pass level without jumping until last level…and also, how can I change spaceships on each level (just ona changes, there must be a way like with de event Overlaps to make the changes on all of the ones on the level.

Help!

[Previous page](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998.md?page=1)
