# Need help

**URL:** <https://forum.makecode.com/t/need-help/10000>\
**Category:** Help\
**Created:** [September 13, 2021, 5:13pm UTC](https://forum.makecode.com/t/need-help/10000 "2021-09-13T17:13:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)\
**Post date:** [September 13, 2021, 5:13pm UTC](https://forum.makecode.com/t/need-help/10000/1 "2021-09-13T17:13:05Z")

</div>

> **[Untitled](https://arcade.makecode.com/30005-20309-94421-68254)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Need help with this code, I want the options to spawn at separate coordinates and for the yellow cursor box to be around the ‘Play’ option. Ignore the background, it’s just a placeholder and the coordinates are already in the code as well as the variables. Also, when I tried to run this code, the sim threw an error: sim error - failed cast on null.

Help would be appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [September 13, 2021, 6:34pm UTC](https://forum.makecode.com/t/need-help/10000/2 "2021-09-13T18:34:50Z")

</div>

Add a call to your second function in `on start`:

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

You need to create the sprites (which you do in `Startup_screen_opts`) before you change any of their properties, like coordinates.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [September 13, 2021, 6:34pm UTC](https://forum.makecode.com/t/need-help/10000/3 "2021-09-13T18:34:55Z")

</div>

I’ll try my best.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [September 13, 2021, 6:34pm UTC](https://forum.makecode.com/t/need-help/10000/4 "2021-09-13T18:34:58Z")

</div>

Turns out, When you start up the game, you have no sprite to start out with. You never made the Cursor Sprite yet. When you told the CursorSprite to go to a position, the code was confused because the cursor sprite wasnt made yet. You never put in your startup function.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [September 13, 2021, 6:37pm UTC](https://forum.makecode.com/t/need-help/10000/5 "2021-09-13T18:37:10Z")

</div>

> **[(Fixed)](https://arcade.makecode.com/80822-56778-80123-60373)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Finihed code.

---

<div class="post-metadata">

**Author:** ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)\
**Post date:** [September 13, 2021, 10:00pm UTC](https://forum.makecode.com/t/need-help/10000/6 "2021-09-13T22:00:33Z")

</div>

Thanks @AlexK and @Dreadmask197

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [September 14, 2021, 3:58pm UTC](https://forum.makecode.com/t/need-help/10000/7 "2021-09-14T15:58:11Z")

</div>

I also found a way to summon sprites around you if you need help with that as well

---

<div class="post-metadata">

**Author:** ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)\
**Post date:** [September 14, 2021, 5:46pm UTC](https://forum.makecode.com/t/need-help/10000/8 "2021-09-14T17:46:48Z")

</div>

No @Dreadmask197, I don’t need that (yet), I’m just trying to make the cursor sprite move from option to option. It’s not fully done but then again just ask if you want to check it.
