# My New Game (SneakPeak/Help)

**URL:** https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739
**Category:** Arcade
**Created:** [March 20, 2025, 12:29pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739 "2025-03-20T12:29:22Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 20, 2025, 12:29pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/1 "2025-03-20T12:29:22Z")

</div>

I am making my new game and I would like to give a sneak peak but I can’t do that till this is done, I have a problem with my game, the problem is I am making a variable called paused for the title screen and setting the game to paused but it is completely pausing and not doing anything until you click the button please find the image below

 ![Screen Shot 2025-03-20 at 7.54.42 am](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/9/a9c3eeeff4917e97692505c55bdefeeaa29c960f.png)

---

<div class="post-metadata">

### Author: ![loganisdabest](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/loganisdabest/32/20151_2.png) [@loganisdabest](https://forum.makecode.com/u/loganisdabest)
#### Post date: [March 20, 2025, 1:48pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/2 "2025-03-20T13:48:47Z")

</div>

put change paused by 1 in the on player2 button pressed

---

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 20, 2025, 8:58pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/3 "2025-03-20T20:58:23Z")

</div>

Ahh.. Thank you that half worked and then I had to input a little 😄

---

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 20, 2025, 9:01pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/4 "2025-03-20T21:01:54Z")

</div>

Also I have a bunch of other unexplained problems that are just stupid and should work my brain just isn’t working, one of them is when I go into the game normally it shoots and animates both directions but when i go through the menu system it doesn’t work it only shoots one way here is a screenshot

 ![Screen Shot 2025-03-21 at 7.49.04 am](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/4/7495c75781225c76a13c99fa6cc227a93892d379.png)  
Also this Is my menu system and when I go into it and try and change the volume it doesn’t change please help  
 ![Screen Shot 2025-03-21 at 7.51.14 am](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/9/69d3e4fa8be0dfbeb3b56c93d381077fae65251a.png)

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [March 20, 2025, 9:03pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/5 "2025-03-20T21:03:57Z")

</div>

If you put it into an “on game update” block the game will not update until the code inside the block is done running. If you put the code into a “forever” block you will not have this problem!

---

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 20, 2025, 9:17pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/6 "2025-03-20T21:17:08Z")

</div>

I just tried that ☹ Didn’t work.

---

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 20, 2025, 9:17pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/7 "2025-03-20T21:17:10Z")

</div>

I have managed to partially fix the volume problem so when you click it it sets the volume when you start the game.

---

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 20, 2025, 10:28pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/8 "2025-03-20T22:28:21Z")

</div>

I have so many big problems that I am just going to provide the link (Sigh) which I didn’t want to do and hope others can fix it. [https://arcade.makecode.com/S06446-46412-62174-27549](https://arcade.makecode.com/S06446-46412-62174-27549) The problem now is that I just can’t find a way of making this sim error go away.

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [March 21, 2025, 10:04pm UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/9 "2025-03-21T22:04:48Z")

</div>

Ok, so there’s this really neat feature called Debug Mode that you can use for stuff like this!  
You enter it by pressing this button under the simulator:

 ![IMG_7950](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/0/80db696dbc0151371a87798e1a3a3b5e5740f8f0.jpeg)  
Once you are in Debug Mode, you can find the little play icon, I think at the top right next to the simulator. Then, when the game gives you an error, it will highlight the cause of the issue! For example, when I press A on the start screen of your game, this code gets highlighted:  
 ![IMG_7951](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/f/8f5811b7c26372978c09508364281230a6803476.jpeg)  
If you click the little warning icon, it will tell you what the error is:  
 ![IMG_7952](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/f/9f7063850543003179b224411031ddf8177fb5ac.jpeg)  
Looks like the error is “failed to cast on null”, which basically means the program tried to find some information and that information was “null”, aka it didn’t exist. In this case, I can guess that the thing that doesn’t exist is either mySprite or mySprite2, which makes sense because they aren’t visible on the start screen. I think you just forgot to put these two blocks into a that one If statement that checks to make sure the game has started. If I move those blocks, your error is fixed!  
 ![IMG_7953](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/e/4ecca04fdc39802e39dfb283626d4caffa41e733.jpeg)

---

<div class="post-metadata">

### Author: ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)
#### Post date: [March 22, 2025, 12:40am UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/10 "2025-03-22T00:40:16Z")

</div>

I now need help because for some reason this code is not working (Deep breath) and I am getting rather annoyed it isn’t even starting the game now.

> **[Shadow Masters (Broken!)](https://arcade.makecode.com/S06446-46412-62174-27549)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![hassan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hassan/32/1457_2.png) [@hassan](https://forum.makecode.com/u/hassan)
#### Post date: [March 22, 2025, 1:54am UTC](https://forum.makecode.com/t/my-new-game-sneakpeak-help/34739/11 "2025-03-22T01:54:12Z")

</div>

The culprit is the empty tile maps in the `set overworld` pxt-world extension function in your `Resume` function:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/1/a1a46af213dbf48601d62403a24100b22e4f9396.png)  
I’m not too familiar with this extension, but the tiles maps are blank which is why you are seeing nothing. For some reason I cannot seem to edit the tiles maps directly either in blocks, or in the asset editor (perhaps @richard could provide more context as the extension author).

That being said, you can grab the built-in parameter and remove it like so:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/7/c7a6b840f5632c7740af4d4ca5f0731597a5db09.png)  
Then you can drag in a new one from the overworld toolbox:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/d/ddb6a2f7047a5c22c7ccb5d0c5feca6c00084080.png)

Once that is in place, you can either fill in the individual tile maps, or grab a single tile map that you can fill and copy-paste if you want the same map over and over again:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/d/8d1b0cb3b3c61a8b43307f3141901ba44d550e64.png)

When the tile maps are loaded, you will see that you character loads in as expected.

Please note: This extension was made to add many smaller tile maps together so that characters could go from screen to screen, like they do in old-school RPGs. That being said, it seems you want to make a side scroller since there is gravity. Only the bottom three tile maps in the last row can be seen by your character since they don’t have a way to travel up. You can either add verticality to your game via platforms to use those higher up tiles, or consider making a long skinny tile map instead.

Here is the link to the edited code so you can see for yourself: [https://makecode.com/\_WXpPs6g535t5](https://makecode.com/_WXpPs6g535t5)

I like the main character’s sprite! Hope you keep working on the game 🙂
