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
€95.85
List Price:  €134.19
You save:  €38.34
£79.54
List Price:  £111.35
You save:  £31.81
CA$143.73
List Price:  CA$201.23
You save:  CA$57.50
A$159.93
List Price:  A$223.91
You save:  A$63.97
S$135.54
List Price:  S$189.77
You save:  S$54.22
HK$777.83
List Price:  HK$1,089
You save:  HK$311.16
CHF 89.34
List Price:  CHF 125.09
You save:  CHF 35.74
NOK kr1,131.88
List Price:  NOK kr1,584.68
You save:  NOK kr452.80
DKK kr715.08
List Price:  DKK kr1,001.15
You save:  DKK kr286.06
NZ$176.75
List Price:  NZ$247.46
You save:  NZ$70.70
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳11,945.33
List Price:  ৳16,723.94
You save:  ৳4,778.61
₹8,493.77
List Price:  ₹11,891.62
You save:  ₹3,397.85
RM450.75
List Price:  RM631.07
You save:  RM180.32
₦154,938.50
List Price:  ₦216,920.10
You save:  ₦61,981.60
₨27,824.38
List Price:  ₨38,955.25
You save:  ₨11,130.86
฿3,419.79
List Price:  ฿4,787.84
You save:  ฿1,368.05
₺3,519.01
List Price:  ₺4,926.76
You save:  ₺1,407.74
B$608.53
List Price:  B$851.97
You save:  B$243.44
R1,830.80
List Price:  R2,563.19
You save:  R732.39
Лв187.32
List Price:  Лв262.25
You save:  Лв74.93
₩144,627.53
List Price:  ₩202,484.33
You save:  ₩57,856.80
₪365.39
List Price:  ₪511.57
You save:  ₪146.17
₱5,882.91
List Price:  ₱8,236.31
You save:  ₱2,353.40
¥15,643.93
List Price:  ¥21,902.13
You save:  ¥6,258.20
MX$2,007.58
List Price:  MX$2,810.70
You save:  MX$803.11
QR364.41
List Price:  QR510.19
You save:  QR145.78
P1,381.63
List Price:  P1,934.33
You save:  P552.70
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,087.81
List Price:  E£7,123.14
You save:  E£2,035.32
ብር12,764.56
List Price:  ብር17,870.89
You save:  ብር5,106.33
Kz91,790.82
List Price:  Kz128,510.82
You save:  Kz36,720
CLP$98,905.10
List Price:  CLP$138,471.10
You save:  CLP$39,566
CN¥729.56
List Price:  CN¥1,021.42
You save:  CN¥291.85
RD$6,087.13
List Price:  RD$8,522.23
You save:  RD$2,435.09
DA13,485.25
List Price:  DA18,879.89
You save:  DA5,394.64
FJ$231.62
List Price:  FJ$324.28
You save:  FJ$92.66
Q770.23
List Price:  Q1,078.35
You save:  Q308.12
GY$20,913.67
List Price:  GY$29,279.97
You save:  GY$8,366.30
ISK kr13,911.60
List Price:  ISK kr19,476.80
You save:  ISK kr5,565.20
DH1,006.07
List Price:  DH1,408.53
You save:  DH402.46
L1,836.70
List Price:  L2,571.46
You save:  L734.75
ден5,900.06
List Price:  ден8,260.33
You save:  ден2,360.26
MOP$800.26
List Price:  MOP$1,120.39
You save:  MOP$320.13
N$1,840.36
List Price:  N$2,576.58
You save:  N$736.22
C$3,678.42
List Price:  C$5,149.94
You save:  C$1,471.51
रु13,597.49
List Price:  रु19,037.04
You save:  रु5,439.54
S/372.23
List Price:  S/521.13
You save:  S/148.90
K405.36
List Price:  K567.52
You save:  K162.16
SAR375.62
List Price:  SAR525.88
You save:  SAR150.26
ZK2,766.46
List Price:  ZK3,873.15
You save:  ZK1,106.69
L477.10
List Price:  L667.96
You save:  L190.86
Kč2,408.98
List Price:  Kč3,372.68
You save:  Kč963.69
Ft39,689.03
List Price:  Ft55,566.23
You save:  Ft15,877.20
SEK kr1,103.13
List Price:  SEK kr1,544.43
You save:  SEK kr441.30
ARS$102,160.40
List Price:  ARS$143,028.65
You save:  ARS$40,868.24
Bs690.76
List Price:  Bs967.10
You save:  Bs276.33
COP$435,928.80
List Price:  COP$610,317.76
You save:  COP$174,388.96
₡50,434.81
List Price:  ₡70,610.75
You save:  ₡20,175.94
L2,537.51
List Price:  L3,552.62
You save:  L1,015.10
₲779,455.88
List Price:  ₲1,091,269.42
You save:  ₲311,813.53
$U4,474.38
List Price:  $U6,264.31
You save:  $U1,789.93
zł408.66
List Price:  zł572.14
You save:  zł163.48
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.