Here we are making a few updates to our game.
The first Blueprint is a collectable token. Every time Kristina gets one, her score is updated and then also it checks if she has all the tokens in the level. If she does a Boolean is switched to True and then she is able to use the portal to the next level.
Here in Kristina’s Character Blueprint we are getting all the tokens in the level so we can compare that number to how many tokens Kristina has collected. Also we are trying out a for loop by grabbing all the tokens and assigning each one a random material.
Lastly we are making a slight update to our portal blueprint that takes the character to another level. We are casting to Kristina to see if she has found all the tokens or not. If she has, the Blueprint works. If she hasn’t, the Blueprint doesn’t run any of its code and she can’t go to the next level.


