Jump to content
  • Advertisement
  • entries
  • comments
  • views

Game development is the only place where...

Sign in to follow this  


You can get a bug that occurs when you try to respawn the player twice.

I foolishly equipped the Giant Zombie with the lightning chaingun, and he made such short work of me next to the respawn point that the game went like this (all in the same method):

1. Respawn the player by creating a new player object with full health. Go to a subfunction, and update the world to make sure he was added properly.
2. Player object is dead inside the update step (in less than a frame)
3. Finish the function by doing some extra work with the freshly spawned player object when refreshing the UI -- uh oh! What happened to the player? Holy shit...

Normally, this wouldn't happen. However, it was happening so fast that I was respawning, dying and encountering this bug all in the same frame (about once every 300 respawns -- and yes, I was dying and respawning that fast). Bizarre.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!