Black Magic Menu - Script #2

12 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€94.79
List Price:  €132.71
You save:  €37.92
£78.97
List Price:  £110.56
You save:  £31.59
CA$139.89
List Price:  CA$195.85
You save:  CA$55.96
A$153.73
List Price:  A$215.23
You save:  A$61.50
S$134.32
List Price:  S$188.05
You save:  S$53.73
HK$778.26
List Price:  HK$1,089.59
You save:  HK$311.33
CHF 88.57
List Price:  CHF 124
You save:  CHF 35.43
NOK kr1,105.08
List Price:  NOK kr1,547.16
You save:  NOK kr442.07
DKK kr706.99
List Price:  DKK kr989.82
You save:  DKK kr282.82
NZ$170.06
List Price:  NZ$238.10
You save:  NZ$68.03
د.إ367.26
List Price:  د.إ514.17
You save:  د.إ146.91
৳11,906.24
List Price:  ৳16,669.22
You save:  ৳4,762.97
₹8,436.24
List Price:  ₹11,811.08
You save:  ₹3,374.83
RM447.10
List Price:  RM625.96
You save:  RM178.86
₦167,464.25
List Price:  ₦234,456.65
You save:  ₦66,992.40
₨27,687.73
List Price:  ₨38,763.93
You save:  ₨11,076.20
฿3,470.35
List Price:  ฿4,858.63
You save:  ฿1,388.28
₺3,445.98
List Price:  ₺4,824.51
You save:  ₺1,378.53
B$578.68
List Price:  B$810.17
You save:  B$231.49
R1,810.53
List Price:  R2,534.81
You save:  R724.28
Лв185.34
List Price:  Лв259.49
You save:  Лв74.14
₩139,691.42
List Price:  ₩195,573.58
You save:  ₩55,882.15
₪373.67
List Price:  ₪523.15
You save:  ₪149.48
₱5,901.36
List Price:  ₱8,262.14
You save:  ₱2,360.78
¥15,574.86
List Price:  ¥21,805.43
You save:  ¥6,230.57
MX$2,020.46
List Price:  MX$2,828.72
You save:  MX$808.26
QR363.35
List Price:  QR508.71
You save:  QR145.35
P1,355.53
List Price:  P1,897.79
You save:  P542.26
KSh12,948.70
List Price:  KSh18,128.70
You save:  KSh5,180
E£4,969.50
List Price:  E£6,957.50
You save:  E£1,988
ብር12,262.61
List Price:  ብር17,168.15
You save:  ብር4,905.53
Kz91,256.94
List Price:  Kz127,763.36
You save:  Kz36,506.42
CLP$97,119.28
List Price:  CLP$135,970.88
You save:  CLP$38,851.60
CN¥724.58
List Price:  CN¥1,014.45
You save:  CN¥289.86
RD$6,000.34
List Price:  RD$8,400.72
You save:  RD$2,400.37
DA13,341.73
List Price:  DA18,678.95
You save:  DA5,337.22
FJ$227.04
List Price:  FJ$317.87
You save:  FJ$90.82
Q769.16
List Price:  Q1,076.85
You save:  Q307.69
GY$20,834.51
List Price:  GY$29,169.15
You save:  GY$8,334.63
ISK kr13,772.62
List Price:  ISK kr19,282.22
You save:  ISK kr5,509.60
DH995.44
List Price:  DH1,393.66
You save:  DH398.21
L1,819.82
List Price:  L2,547.83
You save:  L728
ден5,825.40
List Price:  ден8,155.79
You save:  ден2,330.39
MOP$798.74
List Price:  MOP$1,118.27
You save:  MOP$319.52
N$1,801.35
List Price:  N$2,521.97
You save:  N$720.61
C$3,666.61
List Price:  C$5,133.40
You save:  C$1,466.79
रु13,462.23
List Price:  रु18,847.67
You save:  रु5,385.43
S/378.10
List Price:  S/529.35
You save:  S/151.25
K400.90
List Price:  K561.28
You save:  K160.37
SAR375.38
List Price:  SAR525.55
You save:  SAR150.16
ZK2,752.36
List Price:  ZK3,853.42
You save:  ZK1,101.05
L471.69
List Price:  L660.38
You save:  L188.69
Kč2,395.79
List Price:  Kč3,354.20
You save:  Kč958.41
Ft38,840.72
List Price:  Ft54,378.57
You save:  Ft15,537.84
SEK kr1,099.74
List Price:  SEK kr1,539.68
You save:  SEK kr439.94
ARS$100,165.56
List Price:  ARS$140,235.79
You save:  ARS$40,070.23
Bs690.96
List Price:  Bs967.37
You save:  Bs276.41
COP$440,690.82
List Price:  COP$616,984.78
You save:  COP$176,293.95
₡50,645.88
List Price:  ₡70,906.26
You save:  ₡20,260.37
L2,517.41
List Price:  L3,524.47
You save:  L1,007.06
₲775,966.15
List Price:  ₲1,086,383.66
You save:  ₲310,417.50
$U4,274.58
List Price:  $U5,984.58
You save:  $U1,710
zł411.21
List Price:  zł575.71
You save:  zł164.50
Already have an account? Log In

Transcript

All right, welcome back everyone. So we have it now where if I jump in and play and I press the zero key, I can bring on my black magic menu and I can bring it off if I release that button, but I don't have any way of selecting one of my available black magic skills. If I press any of the arrow keys W, A s and D and E, the D pad, analog stick, etc. My yellow highlighter right there in the middle is not going to highlight and select any of those skills. Let me just jump over now to the previous version of this project that I created in preparation for this course. It is due right over here.

If I click play again, this is the finished version of what we are going to create. What we're going to start working towards is making it so that you can actually highlight and select these different Print skills. Notice that when I'm highlighting a skill like arctic blast here, that text enlarges, there's a yellow highlighter around the skill itself, there's kind of that material around the text. And also, if you look in the upper right hand corner, you can see that that particular image is populating in our black magic skill slot in our HUD, right. So that's what we're going to be working on towards or towards in the next three or four videos. So I'm gonna exit out of my existing project right here.

And here we are back in our version of the project. We're going to be working inside of W BP A B magic menu. So find your way on over to this directory, double click on it to open it up. And don't be alarmed if when you do open it up. You're like, Hey, where is my black magic menu? Remember, you created an animation B magic menu intro animation, in which you set the defaults to new values for a lot of these so If you select your animation, move your timeline slider over to the right, you will see what your menu will ultimately look like and you will feel warm and fuzzy inside.

Okay, let's get to it. In this video, we're going to be creating three functions that we're going to be using in the next few videos. So laying some groundwork down in this one, this is gonna be done over in the Graph tab. So over in the My Blueprint panel, where it says functions, we're going to create a brand new function, so click right here to add one. We're going to name this first function, select magic text effect. Hit enter on that.

And with that guy created, I'm going to select our entry node right here and I'm going to add an input right here in the Details panel. So click this plus button. It's gonna ask for a new input name. I'm gonna call this text to highlights. And I don't want this to be a boolean variable. I'm going to select right here.

We want this to be I'm going to simply type in text, right there a do, where is it? Ah ha, that guy right there. A simple static text widget not text string. So make sure you get simple static text widget, the object reference that guy right there. So it's kind of this bluish color, right? Okay, so with that set, I'm going to drag out of our text to highlight like so.

And I'm going to type in set bonds. And you're going to find this set font function that we can plug into like this. Now, this is going to be the text that we want to highlight and we can set some font information. So now we're going to work backwards a little bit. I'm going to drag off this information. info like so.

And I'm going to type in a make slate font info, like so. And it's going to allow me to specify some things. I'm going to click this little drop down to show you everything that we can possibly slot in here, a font family, which I do want to set. So what kind of font family do I want to set this as I want to slot in? Let's do Gothic letters. Font material, nothing here yet, typeface nothing.

Size. I'm going to set this to a font size of 50. So our when we select a given magic, the size of our font is going to increase and I do want to set some outline settings but check this out. We made some slight font in for you information here by dragging backwards I can drag backwards out of my outline settings like so. And say make font outline settings Aha. And what this is going to allow us to do is specify some outline settings.

So I'm going to click this little drop down, I'm going to say the outline size is going to be seven. The outline material is going to be the one that we created earlier called m underscore text. Highlights you remember when we created this sweet looking material, right kind of had the flames flowing through it. The outline color I'm going to leave is straight black, and the rest of this is going to be fine, I believe. So that is our first function. Congratulations.

All right, let's create another function here. Over in the Details panel or the My Blueprint panel rather, plus to add another function. This one we will call on select. Magic text effect. Not selected meta text in fact, I don't even know if that's correct English there. But anyways, we're gonna select this entry node right here we're gonna add an input for this, click down here inputs plus parameter.

This one we will call text to highlight unhighlight. I don't even know if that's a word. The object or the variable pin type here should be the same as before, but in case you don't have this auto populated from earlier, this was a text. The one you are looking for is down here. A simple static text widget the object reference. Okay, here to we're going to drag off of our text to unhighlight.

We're going to set a font like so. We're going to drag backwards from in font info and we're going to say make slate font info And here we're going to set the font family to the Gothic letters right there. Font material is going to be blank. Our size is going to be set back to 35. So we're enlarging the text. When we are highlighting it, we're setting it back to size 35 when we're not highlighting it anymore, that's what's going on there.

And then for our font outline settings, let's drag backwards out of our outline settings and we will type in make font outline settings, clicking the little drop down arrow, our outline size, let's set that to be to our outline material is going to be our text. Sorry, rather we're not going to have an outline material here because when we are doing our select text magic effect that is when you want that fancy m text highlight and just to show you what that looks like once Again, I'm going to browse to this and the Content Browser. Remember that guy right there. Now it's gonna look black when we see it in games not gonna be orange and white like that. But that was our material that we created earlier. So jumping back to our web magic menu, back on topic here.

Here we are with our unselected text, or magic text effect. Double click on that, that's where we were. So the outline size here is set to two two. We will leave everything else as is I think that looks fine. Okay, last one, to create last function for this video. Anyways, come under functions create another function, this one we are going to call on select all magic text effect.

Okay, and select that entry node right there over in the inputs. We're going to create a new input and we're going to call this Tech's plural to on highlights. And this should be that same variable type as before how ever, we want to make something a little bit different here. If you click this little t icon right to the right, we want to make this an array, we're going to basically unhighlight multiple text. And this is a way we can do this more easily through making this an array variable. So you should see this sort of sort of like waffle looking grid icon, and that's the one we're going to want for this.

Now in this particular function, what we're going to do is drag off of our text to highlight array, this little waffle icon shows that that is going to be an array of text objects. We're going to drag off of this and we're going to bring in a for each loop for each loop right there. There it is, let's hook in that execution is well. So for each loop, what do we want to do for each array element for each text? Well, for each elements in that array, we're going to set the font. Let's make sure that the loop body is plugged into this function as well.

And then here too, we're going to drag backwards out of the infant info and type in make slate info. And our font family here is going to be the Gothic letters fonts, font material is going to be blank. The size here is going to be 35 as well and our outline settings we can drag backwards out of that and type in or it's right there actually make a font outline settings. Our outline size will be two And that should just about do it. So to recap here, we created three functions working backwards, we've got this unselect all magic text effect. I'll select that entry tunnel node to see what we got for our inputs here.

This is all that we have in this particular function that's unselect all magic text effect. Here's our unselect magic text effect, singular version, if you will. Pause the video if you need to hear make sure you're not missing any of these connections. And then last but not least, we got this select magic Text Effect function that we created here to note the input that we're going to be plugging into this eventually. Okay, so with that we are we'll Compile and Save there is definitely more work to be done so we can actually utilize these functions but that will do it all for this video. See you in the next one.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.