How to make level change after scoring right amount of points

I’m new in Unreal and Im creating small game just to learn things. I made endless runner where you pick up coins. I wanted to make a new level that would showed up after picking up 100 coins for example but I don’t know where to start. I know how to make teleport to another level with box trigger but map is generated randomly and its impossible to place it. Is there is a function to count points and if there is 100 = next level?
Any tips or ideas?

You can just use the same code you used to switch levels on box trigger, to switch on 100 coins:


To be on the safe side, I would use a >= rather than a ==. If the score happens to be 101 or greater, the level won’t change.

1 Like

So I made this and it worked for me. Thank you!

1 Like