Collect "x" Items to win BUT in Unreal Engine 5?

So I am making a game where you have to pick up a number of objects to win like… 10.

And I followed some tutorials that creates a counter but not a x/10 so there is no actual ending when you collect all the objects.

Each time you pick up an item it updates a variable. You overlap with the item, then there is an overlap event that fires and it updates a variable. You would want to add code to the end of this, something like a branch that says if objects = 10, disable input, add a hud widget to viewport telling the player he is special, roll credits, and maybe a play again button or perhaps an option for a new game+.

2 Likes

Thanks! I ended up using another method but it help on what I was initially planning