Ever wanted to create a rogue-like shoot 'em up game like Vampire Survivors? In Part 6 of our guide, we will go through how to create add-on features for our characters, including selecting a character and spawning their unique weapon. You can also find Part 5 of our guide here, where we went through how to create characters and pick-ups, including a leveling system for our player characters and also a way to damage them.
A link to a package containing the project files up to Part 6 of this tutorial series can also be found at the end of this article.
To fix an issue where pickups are stuck in the scene after play mode is disabled, you should edit DropRateManager.OnDestroy by adding this at the top of the function:
if(!gameObject.scene.isLoaded)
return;
This will prevent it from spawning drops when the game is being unloaded.
Hi Jamie, thank you for the excellent suggestion. I will definitely be implementing this in the coming tutorials.