Help On Game

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

1 Like


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

1 Like

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)

All fixed

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

a c i v a t e w i n d o w s
lmao

2 Likes