# Help On Game

**URL:** <https://forum.makecode.com/t/help-on-game/22324>\
**Category:** Help\
**Created:** [September 7, 2023, 7:58pm UTC](https://forum.makecode.com/t/help-on-game/22324 "2023-09-07T19:58:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@Pedro](https://forum.makecode.com/u/Pedro)\
**Post date:** [September 7, 2023, 7:58pm UTC](https://forum.makecode.com/t/help-on-game/22324/1 "2023-09-07T19:58:41Z")

</div>

Hello everyone, I’m having some trouble placing the enemy sprite on the road. It keeps spawning above the road and when I try and place “set enemy position,” to the desired place im getting an error code “sim error: failed cast on null.” If someone could tell me why the error is happening or how to fix it? thanks.

[https://arcade.makecode.com/#editor](https://arcade.makecode.com/#editor)

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [September 7, 2023, 9:30pm UTC](https://forum.makecode.com/t/help-on-game/22324/2 "2023-09-07T21:30:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7411f58b0c36f176a6246a40e897fc163dbdc236.png)  
To share a project click the triangle thing and this should come up. After clicking shre project a copyable link will generate which you can share

---

<div class="post-metadata">

**Author:** ![Pedro](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@Pedro](https://forum.makecode.com/u/Pedro)\
**Post date:** [September 8, 2023, 7:59pm UTC](https://forum.makecode.com/t/help-on-game/22324/3 "2023-09-08T19:59:11Z")

</div>

> **[Pixel Wheel Racer](https://arcade.makecode.com/44805-76169-34874-45632)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [September 8, 2023, 9:48pm UTC](https://forum.makecode.com/t/help-on-game/22324/4 "2023-09-08T21:48:46Z")

</div>

The issue is that you haven’t defined what the bogey sprite is so the simulator cannot find it. I would suggest setting its position when the sprite is created (on created sprite of kind block)

---

<div class="post-metadata">

**Author:** ![Octodemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/octodemon/32/15417_2.png) [@Octodemon](https://forum.makecode.com/u/Octodemon)\
**Post date:** [September 8, 2023, 9:53pm UTC](https://forum.makecode.com/t/help-on-game/22324/5 "2023-09-08T21:53:15Z")

</div>

> **[Pixel Wheel Racer fixed by Octodemon6611](https://arcade.makecode.com/78068-74642-30060-20879)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

All fixed

I just moved the set bogey position block into the on game update block

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [September 11, 2023, 6:11pm UTC](https://forum.makecode.com/t/help-on-game/22324/6 "2023-09-11T18:11:31Z")

</div>

_a c i v a t e w i n d o w s_  
lmao
