# "reading \_width" error that I do not understand

**URL:** <https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928>\
**Category:** Help\
**Tags:** game\
**Created:** [April 3, 2023, 4:31pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928 "2023-04-03T16:31:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryder](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@Ryder](https://forum.makecode.com/u/Ryder)\
**Post date:** [April 3, 2023, 4:31pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/1 "2023-04-03T16:31:35Z")

</div>

The main point of the game is to show 4 foods and then randomly show 4 sprites, 3 of which were not shown, one of which was shown, these 4 randomly each set in 1 of 4 positions. So you basically have to remember which was shown, go to it, and if you were right you get a point and it goes again. I am very new to coding and need help past this block here. The link is [https://arcade.makecode.com/S58268-55886-56278-15786](https://arcade.makecode.com/S58268-55886-56278-15786)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [April 3, 2023, 4:57pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/2 "2023-04-03T16:57:40Z")

</div>

(Welcome new coder!!) Hmm, I cant find what is wrong. Ive never encountered this one before!

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [April 3, 2023, 6:51pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/3 "2023-04-03T18:51:56Z")

</div>

substract 1 from list width  
at sprite(10-11-12-13)

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

---

<div class="post-metadata">

**Author:** ![Ryder](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@Ryder](https://forum.makecode.com/u/Ryder)\
**Post date:** [April 3, 2023, 8:45pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/4 "2023-04-03T20:45:09Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [April 3, 2023, 9:02pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/5 "2023-04-03T21:02:34Z")

</div>

substract 1 from **all** “List width” in your code

---

<div class="post-metadata">

**Author:** ![Ryder](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@Ryder](https://forum.makecode.com/u/Ryder)\
**Post date:** [April 3, 2023, 9:27pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/6 "2023-04-03T21:27:11Z")

</div>

Yes I figured that out after a few minutes, thanks again

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [April 4, 2023, 3:05pm UTC](https://forum.makecode.com/t/reading-width-error-that-i-do-not-understand/18928/7 "2023-04-04T15:05:24Z")

</div>

Noice! (I don’t know what ANY of that means lol look at me pretending to be professional)
