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.
Update 13 December 2023: A fix has been added to the PlayerCollector
script that is covered in this series.
I get
Error establishing a database connection
when trying to access the code for the magnet speed fix at https://blog.terresquall.com/community/topic/part-6-magnet-problem/ . Is there another link I could use to see the code? Thank you for the wonderful tutorial!You can try to access the link again. Our server was probably overloaded temporarily, hence the
Error establishing a database connection
issue.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.