Can someone help me please?

don’t know why but for some reason this isn’t working. all i did was drag the screen to move it and it broke everything.

by the way the s blocks are for enemy spawn points and the x blocks are for death, the game is very far from being finished.

1 Like

Ok so first let’s look at the error by clicking on the warning symbol:


Type ‘Sprite’ is not assignable to type ‘number’.
So we must be trying to turn a number variable into a sprite variable, and Makecode doesn’t like that. Well, that means that Makecode thinks your “mySprite” variable is a number, which means somewhere in your code you have turned it into a number. Searching around I found this:

I have no idea why Makecode decided to error all the sprite blocks instead of just one number block, but there’s your issue. This ‘set number’ block is making makecode think that you want “mySprite” to be a number variable. Fixing that by putting another sprite block in there solves the issue!

Welcome to the Makecode forums and happy coding!

1 Like

thank you so much! i spent so long looking for what it was but i couldn’t find it, so i ended up by just restoring an older save until i realized the older one didn’t work. so i’ll just do this. thank you so much for the help

1 Like