0 votes

I completely finished the Dodge the Creeps game in the making your first 2d game tutorial. However there is a bug where the player randomly dies without touching any mobs and this occurs at inconsistent times. The game over message appears and the game resets and runs normally otherwise including the collisions. The longest I've gone is 25 seconds and then it randomly triggers game_over. I'm not sure where is the bug.

Godot version 3.5
in Engine by (12 points)

I wonder if you have some misaligned or misplaced collision shapes. To check:

  • From the Godot editor's main menu...
  • Activate Debug | Visible Collision Shapes

That'll draw the collision shapes in-game. Do you see some that do not coincide with the character sprites?

Can we see your code?

I figured it out. The code basically came directly from the tutorial so there was something wrong with the setup of one of the mob node. There was an extra animation like jgodfrey mentioned. It was a default animation so there were invisible enemies that were created that were floating around. I deleted the extra animation and now it runs just fine. Thank you everyone.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.