Hi. I’m making a game where your job is to collect all the items. I don’t kow how to end level after collecting all (10) items. Can you help me please? I’m a complete beginner.
Thank you.
PS. I apologize for my English.
Hi. I’m making a game where your job is to collect all the items. I don’t kow how to end level after collecting all (10) items. Can you help me please? I’m a complete beginner.
Thank you.
PS. I apologize for my English.
you can make an int variable in your character to represent the coins needed to clear the level. then you move those branch and open level nodes into the character. you could place it at the end of the add coin function but it would be better in the long run for it to be it’s own function.
so then the branch check you just need to check if the total coin is greater than or equal to the coins needed to clear the level. using the greater than or equal to node. >=
if the coins needed to clear a given level vary you can set up the int in the level bp or make an actor bp that can act as a coin manager for the level and set a variable in that.
I basically did this in a tutorial series of mine. You can watch from the beginning if you want to see the entire setup and learn some other blueprint fundamentals as well since you mentioned being a beginner or you can just watch the most relevant videos namely #11,12 and 14. These go over how to count coins and when all coins have been reached move the player to a new level.
It’s working. Thank you very much!