I want to make a game like Exit 8 for my class. I know how to make objects disappear or move, but how do I set it up so they randomly appear each level and then reset? Also how do I make it so they only appear once in a playthrough and don’t repeat. I’ve seen people use a blueprint manager but I’m not really sure how that works.
Hey there @TamakiSoul7! The answer somewhat depends on how your levels are laid out, if you have predetermined spawn locations, if you need them randomly spawn them anywhere on the navmesh within a range, etc.
As for retaining the data of what enemies you had spawned, you could save the data to your GameInstance
and that will persist for as long as the game is opened.
Here’s a couple systems that could give some inspiration.
This video is a simple spawn enemy on the nav mesh in a radius:
Alternatively, here’s a livestream of a developer putting together a similar system with a “rank” system to determine how many of what types of enemies can spawn:
If neither of these systems provide a decent baseline for you, let me know your use case and I can find better resources.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.