Welcome back everyone in this video Our goal is to call our newly created HUD animation to play whenever a white magic selection has occurred. This should be a quick video. Let's jump right to it here in our content Metroidvania blueprints frameworks folder, find your PC Metroidvania Player Controller blueprint, double click on it to open it up. In here we have our showing and hiding of our black magic menu and our white magic menu. And right now the current different is when we're showing and hiding our black magic menu we've got this block a script over on the left hand side that will show the Starburst upon selection that's a little Starburst in the hood. What I want to do here is left click and drag and select this bit of script off of our showing and hiding of our black magic menu.
This show Starburst upon selection. Let's hit Ctrl C and then Down here with our showing and hiding of the white magic menu down in the lower right right about here. We're going to hit Control V. And now that I hold I scroll wheel in rather off of my set input mode game only note I'm going to plug this into our branch node. And almost everything is good to go except for we need to swap out a few variables. Again down here, we're dealing with our white magic menu and right now we're saying hey, black magic menu we want to find out if a selection is made. Well we don't care about the black magic menu down here.
We care about the white magic menu. So let's bring in our w BP white magic menu. Let's get that and then off of this we're going to drag off and find out if a selection was made. Get selection made from inside of our w BP or wb w magic. menu. Now we can get rid of these two guys right here.
I'm just gonna delete those out. And that is the check that we're going to be making at this point. Now if a selection has been made inside of our white magic menu, we do want to play a sound. Then we're going to cast to our MV HUD and we're going to grab our w BP HUD and we want to play an animation but we don't want to play the B magic slotted animation we want to drag out and get the W magic slotted animation and plug that into the in animation. Now if you were not able to find this w magic slotted animation, when you drag out of web HUD, make sure that in w BP HUD that you have compiled and saved Now here inside of our PC Metroidvania I'm going to quickly Compile and Save to ensure that we are error free. Let's give this a quick test.
Now by jumping in and playing. I'm going to hold down the Ctrl key on my keyboard to bring on my white magic menu. Let's select shield and now when I release my button to get rid of the white magic menu, you should see a little Starburst appear behind our shield in the hood. Let's check it out. And there it was. Try one more time time slow.
There it was, again. Job well done guys. We now have functional white in black magic menus. That'll do it all for this video guys. See you in the next one.