# Dungeon Jhon

**URL:** <https://forum.makecode.com/t/dungeon-jhon/8782>\
**Category:** Arcade\
**Tags:** game\
**Created:** [June 17, 2021, 4:01pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782 "2021-06-17T16:01:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [June 17, 2021, 4:01pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/1 "2021-06-17T16:01:06Z")

</div>

> **[Dungeon Jhon](https://arcade.makecode.com/70234-55744-46880-32113)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Yay a dungeon game. What is more fun that break your mind to do the puzzles?

Instructions: D-Pad to move  
A to interact with things like levers  
and B to run.

Inspiration come from: The Legend of Zelda series

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [June 17, 2021, 6:37pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/2 "2021-06-17T18:37:37Z")

</div>

Good! Maybe you can make it so you can skip the intro, and If you press a button in the cut scenes or loading screen, the game crashes. Set a In game? boolean to check if it can do the action before trying to do it.

---

<div class="post-metadata">

**Author:** ![biscuit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/biscuit/32/4404_2.png) [@biscuit](https://forum.makecode.com/u/biscuit)\
**Post date:** [June 18, 2021, 4:25pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/3 "2021-06-18T16:25:39Z")

</div>

Yeah, the system doesn’t know what the variables are and so when you press buttons it gives you a ‘null’ error. What I like to do to avoid these is either what @Agent_14 suggested or to just define all of the variables right from the start.

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [June 18, 2021, 4:34pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/4 "2021-06-18T16:34:22Z")

</div>

Ok but i don’t know how to fix this.

---

<div class="post-metadata">

**Author:** ![biscuit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/biscuit/32/4404_2.png) [@biscuit](https://forum.makecode.com/u/biscuit)\
**Post date:** [June 18, 2021, 5:10pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/5 "2021-06-18T17:10:05Z")

</div>

It’s pretty simple actually. You just have a variable as soon as the game starts that sets “Game started” to false. With this you can make it so that with all of the movements/pressing A/B won’t do anything until the game has actually started, making it so that it won’t shut down the simulation. You just have to put an if statement in all of the movement/button press code that is just ‘if game started’ and then it will run that code once the game has started, but otherwise it won’t. You can just set the ‘game started’ variable to true once the cutscene has ended, and that should fix all the problems.

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [June 18, 2021, 5:15pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/6 "2021-06-18T17:15:18Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![I\_Love\_HxH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/i_love_hxh/32/4494_2.png) [@I\_Love\_HxH](https://forum.makecode.com/u/I_Love_HxH)\
**Post date:** [July 3, 2021, 2:19am UTC](https://forum.makecode.com/t/dungeon-jhon/8782/7 "2021-07-03T02:19:49Z")

</div>

What a good game! Omedetougozaimasu! Watashi wa kono gēmu ga sukidatta! (Congratulations! I liked this game!)

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [July 4, 2021, 12:02am UTC](https://forum.makecode.com/t/dungeon-jhon/8782/8 "2021-07-04T00:02:55Z")

</div>

Tanks advanced 😀

---

<div class="post-metadata">

**Author:** ![Kai](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kai](https://forum.makecode.com/u/Kai)\
**Post date:** [July 4, 2021, 12:06am UTC](https://forum.makecode.com/t/dungeon-jhon/8782/9 "2021-07-04T00:06:49Z")

</div>

I like your game.

---

<div class="post-metadata">

**Author:** ![Skitter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/skitter/32/14002_2.png) [@Skitter](https://forum.makecode.com/u/Skitter)\
**Post date:** [July 6, 2021, 2:49am UTC](https://forum.makecode.com/t/dungeon-jhon/8782/10 "2021-07-06T02:49:44Z")

</div>

I love your game!

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [July 6, 2021, 4:22pm UTC](https://forum.makecode.com/t/dungeon-jhon/8782/11 "2021-07-06T16:22:37Z")

</div>

Thanks
