Game Mode Winning Conditions
I'm trying to make a game mode where you need to collect all of the coins in the level to win and the time you took to collect them is recorded.
I've got a blueprint for the coins set up so you can collect them and the timer counting up at level start. The problem is that I don't know how to go about tracking how many coins are in the level and capturing the time when the last coin is touched to display on the scoreboard.
Anyone able to help out with this?
You can use "Get all Actors of Class" and choose the Coin Class. This will return an array of all coins. You could check the Length of the Array every tick (or maybe everytime a coin was picked up) and if the Length is 0, the player collected all coins. All of this works providing that you delete the Coin Actor if it gets picked up.
Follow this question
Once you sign in you will be able to subscribe for any updates here