Implementing the Spawn System

 Author: Christopher Solomon

    One of the systems that I implemented this past week is the spawn system. Prior to its implementation, nothing would happen if the player ran out of HP. I worked to make sure that the player would die if they lost their HP and then be respawned a few seconds later. There were a few issues I had to solve to get the system working however. One such thing was that the player could enter build mode after they died during the respawning period. I solved this problem by disabling input from the player controller after death and restored input after they respawned. Another problem that occurred was that sometimes the player would not respawn if their respawn point was colliding with another object. I fixed this by making sure that the player's position will be shifted but they will always respawn in such cases.

Comments

Popular posts from this blog

Working With Data Assets

Creating Game Icons Using AI