Can you guys help me out with my game?

My game won’t work well, and I have multiple problems that I have no idea how to fix.

  • The dart or Angrybulb sprite can’t be cloned anywhere on tiles, which kind of sucks. I would have to create multiple variables for each tile. I even tried just making a new sprite if it was destroyed on another tile, but I had no Idea how to do that.
  • The function commenceDeath won’t even run, although the code explicitly states that it should run the function whenever you touch a spike tile (i think that might be due to lag or some other problem since I know that the blocks are rendered in JavaScript)
  • The on B pressed code works only when I press B once, and it doesn’t run and it just stops doing stuff. (This is the one bug that I had the most trouble fixing)
  • For the On life zero It kind of doesn’t work becuase It used to show both of the sprites used in commenceDeath.

If any of you could help me it would be greatly appreciated :grinning_face:

3 Likes

Try forever if b button is pressed (do function)

1 Like

Didint work. I kept it in the on B presssed forever loop and it didn’t dash

1 Like

Alright i cant fix it ill have to call in the big guns ohhh @WoofWoof

1 Like

XD I was playing Metroid Dread! So I’ll figure this one out now that I’ve beaten Rookie Mode! (Amazing Switch game btw!)

Found your main issue! Looking at your code, this will probably fix a lot of bugs. The issue is that Makecode doesn’t run Forever blocks until OnStart stops running, so that While loop at the end is preventing all your Forever blocks from running! You can probably put this into its own Forever block fairly easily, so this will be an easy fix!

dw guys I backed the game up and it almost has ZERO PROBLEMS except for the dart problem. I have made the dash problem worse by trying to fix the dash problem where you can’t dash multiple times in the air, but your character dashes as many times when you pressed b midair as soon as it touches the ground. I fixed this by adding a timer, but if you want to take a look at the old code It would be great: