i am pretty new to coding as this is one of my biggest projects yet. whenever the tutorial is finished and the first wave is sent out the game immediatley crashes and doesnt give me a proper reason why. someone help? https://arcade.makecode.com/S56898-64646-01927-92445
1 Like
To get useful info you’ll need to use debug mode, which is this icon under the simulator:
Pressing play and playing the game until the bug occurs ends up with this:
This bug just means that either mySprite6 or mySprite3 don’t exist when this code is run. Should be a pretty simple fix: just make sure to create those sprites before that line of code is run.
2 Likes
My idea?
Use the sprite utils extension block “Is [Sprite] destroyed” to make sure those sprites exist.
jwunderl/arcade-sprite-util
thank you so much!! this actually helped a lot! thx!!!
2 Likes