# Help MEEEEEEEEE! :|

**URL:** <https://forum.makecode.com/t/help-meeeeeeeee/13405>\
**Category:** Help\
**Tags:** game\
**Created:** [May 2, 2022, 4:59pm UTC](https://forum.makecode.com/t/help-meeeeeeeee/13405 "2022-05-02T16:59:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SizzleStick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sizzlestick/32/7474_2.png) [@SizzleStick](https://forum.makecode.com/u/SizzleStick)\
**Post date:** [May 2, 2022, 4:59pm UTC](https://forum.makecode.com/t/help-meeeeeeeee/13405/1 "2022-05-02T16:59:42Z")

</div>

[https://makecode.com/\_1aa3zDXHWCsYhttps://makecode.com/\_1aa3zDXHWCsY](https://makecode.com/_1aa3zDXHWCsYhttps://makecode.com/_1aa3zDXHWCsY)  
Um, I can’t draw lines.

---

<div class="post-metadata">

**Author:** ![SizzleStick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sizzlestick/32/7474_2.png) [@SizzleStick](https://forum.makecode.com/u/SizzleStick)\
**Post date:** [May 3, 2022, 5:24pm UTC](https://forum.makecode.com/t/help-meeeeeeeee/13405/2 "2022-05-03T17:24:15Z")

</div>

@richard do you know what’s going on???

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 3, 2022, 6:06pm UTC](https://forum.makecode.com/t/help-meeeeeeeee/13405/3 "2022-05-03T18:06:08Z")

</div>

What’s happening here has to do with the arcade game loop!

Every frame of a game written in arcade goes through a bunch of steps in the same order. There are a lot of different things that go on (you can see all of them [here](https://arcade.makecode.com/developer/game-loop)), but the relevant ones in this case are these two:

**Step 1** Controller events are run (the very first thing that happens each frame)  
…  
**Step 8** The screen is rendered (all sprites, tilemaps, background images, background color, etc. are drawn the the screen)

Because the screen is rendered after controller events are run, anything that is done to the screen inside a controller event will be overwritten by step 8.

So how can you draw directly to the screen? Use the excellent [jwunderl/arcade-sprite-util](https://github.com/jwunderl/arcade-sprite-util) extension that @jwunderl made! Inside that extension there is a block that lets you draw to the screen at a specific z-index:

![Screen Shot 2022-05-03 at 11.05.25 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/67a12f0b07f0ea73655d59c9e7e7406963939df0.png)

Try putting your drawing code in there!

---

<div class="post-metadata">

**Author:** ![SizzleStick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sizzlestick/32/7474_2.png) [@SizzleStick](https://forum.makecode.com/u/SizzleStick)\
**Post date:** [May 4, 2022, 5:26pm UTC](https://forum.makecode.com/t/help-meeeeeeeee/13405/4 "2022-05-04T17:26:30Z")

</div>

Thank you!!!
