# Need Help with my coding game

**URL:** <https://forum.makecode.com/t/need-help-with-my-coding-game/42091>\
**Category:** Help\
**Tags:** game\
**Created:** [February 11, 2026, 9:11pm UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091 "2026-02-11T21:11:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![engineer703](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/engineer703/32/35135_2.png) [@engineer703](https://forum.makecode.com/u/engineer703)\
**Post date:** [February 11, 2026, 9:11pm UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091/1 "2026-02-11T21:11:27Z")

</div>

> **[Coding Game](https://arcade.makecode.com/S19418-50918-41297-56413)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I am working on this game, but it stumped me after I got to this point. Anyone know how to make this work???

Note that the controls of this game are as follows:

Type to code, with the following commands: (also enter to make the next line)

Move:

Move1, Move2, Move3, Move4, or Move5 (moves (amount given) in front)

Turn(right):

Turn1, Turn2, Turn3, Turn4 (turns(amount of turns determined by number))

---

<div class="post-metadata">

**Author:** ![coder42](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@coder42](https://forum.makecode.com/u/coder42)\
**Post date:** [March 24, 2026, 7:53pm UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091/2 "2026-03-24T19:53:44Z")

</div>

I’d love to help! Very cool progress with the text engine, but can you elaborate on where you got stuck? I’m confused about what it is that you’re trying to implement this stage in coding.

---

<div class="post-metadata">

**Author:** ![engineer703](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/engineer703/32/35135_2.png) [@engineer703](https://forum.makecode.com/u/engineer703)\
**Post date:** [March 24, 2026, 7:55pm UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091/3 "2026-03-24T19:55:28Z")

</div>

Well, I can get it to read the first line, but anything after it doesn’t work.

---

<div class="post-metadata">

**Author:** ![coder42](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@coder42](https://forum.makecode.com/u/coder42)\
**Post date:** [March 24, 2026, 9:27pm UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091/4 "2026-03-24T21:27:11Z")

</div>

Do you think you can just elaborate some more on what your game actually is? I’m still not clear on what it is you’re trying to do, so could you be more specific and give a good detailed breakdown of the vision for the game?

---

<div class="post-metadata">

**Author:** ![engineer703](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/engineer703/32/35135_2.png) [@engineer703](https://forum.makecode.com/u/engineer703)\
**Post date:** [March 25, 2026, 2:56am UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091/5 "2026-03-25T02:56:12Z")

</div>

So basically, I want you to be able to type the code in multiple lines, with Move having the square move forward, and Turn having the square turn right. When you press Shift, then the code runs. Currently, the game processes the first line, then fails at processing the second line. I want it to go through all the lines of code you write.

---

<div class="post-metadata">

**Author:** ![coder42](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@coder42](https://forum.makecode.com/u/coder42)\
**Post date:** [March 25, 2026, 4:50pm UTC](https://forum.makecode.com/t/need-help-with-my-coding-game/42091/6 "2026-03-25T16:50:05Z")

</div>

Ok, well I took a closer look at your code, and there’s one big thing I noticed that you aren’t using for adding enters/newlines, and I’d recommend rewriting some code to utilize this: **\n** (make sure it’s a backslash). inserting this into a string automatically creates a new line for you, so your entire text block can be displayed on a single textSprite accessing one single string that you manage as the user types, adding \n when the user presses enter. (the character will not be displayed, it is interpreted as a enter/newline “character”). Not only does this simplify your typing code, it also simplifies the next step of interpreting the input once shift is pressed, as you should be able to separate out the string into an array at each \n occurrence.
