# Cannot read properties of null (reading '\_width')

**URL:** https://forum.makecode.com/t/cannot-read-properties-of-null-reading-width/20518
**Category:** Help
**Created:** [June 9, 2023, 7:40pm UTC](https://forum.makecode.com/t/cannot-read-properties-of-null-reading-width/20518 "2023-06-09T19:40:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aiden](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@aiden](https://forum.makecode.com/u/aiden)
#### Post date: [June 9, 2023, 7:40pm UTC](https://forum.makecode.com/t/cannot-read-properties-of-null-reading-width/20518/1 "2023-06-09T19:40:08Z")

</div>

I am currently trying to create a game on MakeCode arcade for a school project, the game is similar to Mario. There are monsters you attack, and a boss level. Consisting of 5 levels in total.

 ![Screen Shot 2023-06-09 at 1.43.54 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0405a87655a4f8e172ec871d188adbd87001f83d.png)

I finished creating the sprite for the player and I am currently trying to get it to walk. But it is not working and it keeps giving me the same error message.

---

<div class="post-metadata">

### Author: ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)
#### Post date: [June 9, 2023, 7:44pm UTC](https://forum.makecode.com/t/cannot-read-properties-of-null-reading-width/20518/2 "2023-06-09T19:44:41Z")

</div>

At the moment, it looks like you’re trying to animate using several different sprites (which appear to not have initialized.) I’d suggest using an animation block from the arcade-sprite-animation extension, instead.

![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0e116a71683fbf213c8ef34c56beed0684253665.png)

In fact, a bunch of the things you’ll need to learn how to do happen within this tutorial, if you want to fast-forward passed some of the struggle:

[https://arcade.makecode.com/--skillmap#jungle](https://arcade.makecode.com/--skillmap#jungle)

Enjoy!
