Bug in initiating combat

Lot of things wrong with this code.

  1. Initiating combat with the ghost always freezes the game.
  2. The player starts with decreased HP, as well as the ghost.
  3. The game says something’s wrong with the status bar, but I can’t find out what’s wrong with it.

If you have any tips that would be really helpful

1 Like

Could you send a link to your project? The code isnt very readable from the screenshot and it will make debuging it much easier

1 Like

the quality of the image seems to be bad (at least on my phone), can you share the project?

1 Like

And now the projectiles stay for less than 50 milliseconds even though they’re set to 500.

1 Like

yea here

2 Likes

I do want to ask why the boss is a ghost because doesn’t that mean that it won’t take damage because it avoids physical collision?

Also when it comes to having full status bar for skelly and the player, you have to set the max value it can go to first, then set the value that it starts at.

For reference:

1 Like

Okay so the statusbard arent full because you are setting the value before the max, you just need to swap the order.

It crasher here when you click A

I think its because skellyflare doesnt exist yet

If it crashes, you can use debuging mode to see which exact block caused the crash.

1 Like