HUD - Layout #4

10 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
€93.84
List Price:  €131.38
You save:  €37.54
£80.95
List Price:  £113.34
You save:  £32.38
CA$137.04
List Price:  CA$191.86
You save:  CA$54.82
A$154.99
List Price:  A$216.99
You save:  A$62
S$136.27
List Price:  S$190.79
You save:  S$54.51
HK$783.50
List Price:  HK$1,096.94
You save:  HK$313.43
CHF 91.19
List Price:  CHF 127.67
You save:  CHF 36.48
NOK kr1,101.37
List Price:  NOK kr1,541.96
You save:  NOK kr440.59
DKK kr700.13
List Price:  DKK kr980.21
You save:  DKK kr280.08
NZ$169.21
List Price:  NZ$236.90
You save:  NZ$67.69
د.إ367.23
List Price:  د.إ514.14
You save:  د.إ146.90
৳10,965.37
List Price:  ৳15,351.96
You save:  ৳4,386.58
₹8,334.23
List Price:  ₹11,668.26
You save:  ₹3,334.02
RM477.95
List Price:  RM669.15
You save:  RM191.20
₦125,683.43
List Price:  ₦175,961.83
You save:  ₦50,278.40
₨27,806
List Price:  ₨38,929.52
You save:  ₨11,123.51
฿3,703.32
List Price:  ฿5,184.80
You save:  ฿1,481.48
₺3,259.92
List Price:  ₺4,564.01
You save:  ₺1,304.09
B$516.59
List Price:  B$723.25
You save:  B$206.66
R1,923.67
List Price:  R2,693.22
You save:  R769.54
Лв183.31
List Price:  Лв256.64
You save:  Лв73.33
₩137,775.97
List Price:  ₩192,891.88
You save:  ₩55,115.90
₪378.18
List Price:  ₪529.46
You save:  ₪151.28
₱5,754.62
List Price:  ₱8,056.70
You save:  ₱2,302.07
¥15,478.45
List Price:  ¥21,670.45
You save:  ¥6,192
MX$1,711.89
List Price:  MX$2,396.72
You save:  MX$684.82
QR364.36
List Price:  QR510.13
You save:  QR145.76
P1,383.88
List Price:  P1,937.49
You save:  P553.61
KSh13,448.65
List Price:  KSh18,828.65
You save:  KSh5,380
E£4,807.48
List Price:  E£6,730.67
You save:  E£1,923.18
ብር5,687.89
List Price:  ብር7,963.28
You save:  ብር2,275.38
Kz83,485.81
List Price:  Kz116,883.48
You save:  Kz33,397.66
CLP$95,253.47
List Price:  CLP$133,358.67
You save:  CLP$38,105.20
CN¥724.60
List Price:  CN¥1,014.47
You save:  CN¥289.87
RD$5,894.01
List Price:  RD$8,251.85
You save:  RD$2,357.84
DA13,445.45
List Price:  DA18,824.17
You save:  DA5,378.72
FJ$227.71
List Price:  FJ$318.80
You save:  FJ$91.09
Q777.29
List Price:  Q1,088.24
You save:  Q310.94
GY$20,903.54
List Price:  GY$29,265.80
You save:  GY$8,362.25
ISK kr14,104.58
List Price:  ISK kr19,746.98
You save:  ISK kr5,642.40
DH1,013.18
List Price:  DH1,418.50
You save:  DH405.31
L1,782.83
List Price:  L2,496.04
You save:  L713.20
ден5,776.11
List Price:  ден8,086.79
You save:  ден2,310.67
MOP$806.39
List Price:  MOP$1,128.98
You save:  MOP$322.58
N$1,907.39
List Price:  N$2,670.43
You save:  N$763.03
C$3,677.32
List Price:  C$5,148.40
You save:  C$1,471.07
रु13,326.11
List Price:  रु18,657.10
You save:  रु5,330.98
S/368.16
List Price:  S/515.44
You save:  S/147.28
K379.71
List Price:  K531.61
You save:  K151.90
SAR375.04
List Price:  SAR525.07
You save:  SAR150.03
ZK2,580.25
List Price:  ZK3,612.45
You save:  ZK1,032.20
L466.96
List Price:  L653.76
You save:  L186.80
Kč2,370.96
List Price:  Kč3,319.44
You save:  Kč948.48
Ft36,978.60
List Price:  Ft51,771.52
You save:  Ft14,792.91
SEK kr1,088.71
List Price:  SEK kr1,524.24
You save:  SEK kr435.53
ARS$87,217.91
List Price:  ARS$122,108.57
You save:  ARS$34,890.65
Bs692.87
List Price:  Bs970.05
You save:  Bs277.17
COP$390,680.46
List Price:  COP$546,968.27
You save:  COP$156,287.81
₡50,009.58
List Price:  ₡70,015.41
You save:  ₡20,005.83
L2,466.51
List Price:  L3,453.22
You save:  L986.70
₲740,348.57
List Price:  ₲1,036,517.61
You save:  ₲296,169.04
$U3,852.35
List Price:  $U5,393.45
You save:  $U1,541.09
zł405.43
List Price:  zł567.62
You save:  zł162.18
Already have an account? Log In

Transcript

Welcome back, everyone. Last video here for our HUD layout. The goal in this one is to lay out the black magic portion of our HUD. So let's jump right to it. We are within our w BP HUD asset here in our content Metroidvania widgets folder. This is what we've got so far, we're going to be adding some more widgets over here to our hierarchy to represent whatever black magic skill we've got slotted into our right trigger button.

So without further ado, let's bring in an image we're going to do like we did before, we're going to attach some some image some widgets to our hierarchy first, and then we're going to set the details. So let's go ahead and left click, grab our image, we're going to drop this on top of our canvas panel. You're gonna hit f2 on this one, this one's gonna be called B map. For black magic underscores Starburst. We're going to add a another image widget just going to grab this drag and drop it on our canvas panel hit f2 on it and this one is going to be called be magic underscore image. Next one we are going to grab is a border widget going to drag and drop this on our canvas panel.

Hit f2 this is going to be called be magic underscore border. And we're starting to run out a little bit of space here. So just two more to add. We're gonna add a test a text widget next, drag and drop that on your canvas panel. F to be magic underscore manna costs will be the name of this one. And last but not least, we are going to add an image widget.

This tool is going to be added to our canvas panel. gonna hit f2 on this one and this one's gonna be called be magic. move my mouse cursor out of the way there underscore button. So it's a little weird in that this is actually an image widget, but we're naming it button because like we had the L trigger button up over here we're gonna have a button to represent our trigger. Okay, so with all that in place, let's start setting the details. So starting with our A B magic Starburst, make sure that guy is selected.

We are going to anchor this one to the upper right square here. The position for the x is going to be negative 162. The y is going to be 55. The size x is going to be 50 and the size y is going to be 50. So that is going to be our starting First, we need to slot in that image of our Starburst. So under appearance brush, I am going to left click and hold, release left click down in my search bar and I'm going to do a search for t underscore star burst right there, it's gonna look kind of small, but later on, we're going to use this too, as a kind of animation that's gonna spin behind our image holder here to represent whenever we change out whatever magic is slotted in that particular location.

Okay, so next one, let's go select our be magic image over here in our hierarchy. The anchor for this one is also going to be the upper right square there this guy. position x is going to be negative 183. Position y is going to be 31. size x we're going to set to 90 and the size y is going to be 90 as well. We'll set the Z order for To be five and the brush, the appearance brush image is going to be left click and hold, release, left click and this one is going to be magic underscore empty. This sort of black looking empty, empty circle if you will.

Okay, and next one, we are going to select our be magic border down here in our hierarchy. This one too is going to have the anchor point in the upper right corner. And these positional coordinates are relative to that anchor point once again, so position x is going to be negative to 25 relative to that anchor point. And this little flower icon represents our anchor point by the way, position y is going to be negative five sighs x is going to be 160 sighs Why is going to be 160 And our z order here, we're going to set this to be 10 over the top of our Starburst there, or sorry, our be magic image. And then for our appearance brush, we're going to left click hold, release, left click in here, we're going to do a search for t underscore black magic. This is kind of the the holder if you will, the asset that's going to serve as the frame for our black magic image.

Okay, we do want to make sure that we draw this as an image, which it is, so this is all looking good. Next one, we only got a couple more of these and we can put a wrap on our HUD here. So our B Magic Man Acosta like that guy. Anchor Point as you would expect by now upper right? position x relative to that anchor point is going to be negative one to 60 position wise 96 the size x 50 size y 50 the Z order you can see it's behind things. So let's bring that to the top by putting it at 15.

That'll put it to the top of the stack. I'm going to set our text here, this is gonna be a placeholder value, I'm just gonna set it to 99 for now, eventually we are going to bind this to a variable. I do want the color of this to be yellow. So I'm going to set the be the blue value here to be zero under the appearance section. The font family is going to be our Gothic numbers. size will be a little bit bigger we'll set it to 25.

We do have some outline settings here as well. The outline size is going to be two. We're going to leave it at a black color here. The a as one is going To make it so that shows if you set this to zero, that outline is not going to show. So make sure the outline color a is one. That's the alpha value how transparent or opaque it is.

Shadow offset here, we're gonna set that to two in the x and the y and you currently don't see any shadowing to this until you set the shadow color a the alpha value to be one, like so. Lastly, I'm going to set the justification here. As you see it's a little bit over to the left. Let's set that to be a little bit more to the middle. And maybe that's not centered perfectly, but I'm going to say good enough for now. Sorry, we do have one more widget here.

That is our be magic button widget. So make sure you select that guy. As you may expect. This is going to be anchored in the upper right corner. position x is going to be negative 65 Position y we got 45. size x is going to be 65. Size y is 60.

We're going to give us a z order of 15. Even though it's not really going to be touching this too much, just as kind of a precaution in case it does intrude on it a little bit, and our brush image here, I'm going to left click and hold left click release. And t underscore our trigger oh one is the one we are looking for here. Now I actually am going to give this a little bit of a tint here. You don't have to do this and maybe this doesn't look good. You can see I've kind of got a white frame here to indicate white magic and I kind of keep this button looking white as well.

And I've kind of got this dark color for black magic as well as it's kind of this hot pink color. I'm just going to colorize this button a little bit too. Totally your choice here but I'm going to set the G value here under the tent, not the color and opacity the tent, it was at the G value to be point 05. And the B value is going to be point five and that's basically going to give it a pinkish color hot pink that kind of matches this side of our Manoj equation. So that is pretty well going to do it for our HUD. Let's Compile and Save and play and see what this looks like.

Lot of work done over the course of four videos here. So you can see how this all kind of looks on our screen. And I'm just going to hold down shift and then do f1. And if I do that, my mouse cursor will appear on screen so I can kind of resize this window and you can see that our manna objects right up here in the upper right, they're staying anchored to that upper right hand portion of the screen, whereas this health and character info up over here is staying anchored to the leftmost portion of the screen. So as you kind of resize it, it'll try to keep those things in their respective corners. But guys, that is looking pretty good.

So job well done. We have a HUD layout all together. Now we just need to bind some of these various widgets to some variables. That is upcoming. We will see you guys in the next video.

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.