Hello as you can see in the title my game is not working. I think it is because one of the sprites are not named and one sprite/ variable does not have cell structure (however I am not sure). Please help me this is my link to my game https://arcade.makecode.com/S85430-07680-73351-99430. (Extra you do not have to do this!) My game has some bugs with walking into walls, and I do not know why if you could please fix that would be awesome.
Hey, @sgaurons-pixel! Welcome to the community.
That may be the problem, or you just didn’t add a title to the function.
Omg I did not even know if my post was going to get any traction thank you so much RoboVacDev!
Using Debug Mode, I can see that the error is here:
You can enter debug mode using the little beetle icon button under the simulator.
This error means that either “mySprite2” or “mySprite3” doesn’t exist when this function is called.
Looking at your tilemap, I can see that there are no red tiles in your tilemap, which means no "mySprite2"s will be created, which causes the error.
Then I went about fixing other issues…
I moved this code into a forever block, which makes more sense:
I see that your guard is getting stuck on the left wall now. You can fix this with the sprite ghost through walls flag, or by changing the level geometry.
Then I fixed your status bar… mess…
Then I realized that you probably wanted to stop the timer when the player’s health is below a certain amount, so I changed it to this:
Also, you can replace all those status bar detection blocks with something like this:
Here is my version of the project:
Thank you so much for this fixed version. Woof Woof





