BP Construction - Parent Target

9 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.07
List Price:  €130.30
You save:  €37.23
£79.62
List Price:  £111.47
You save:  £31.85
CA$136.60
List Price:  CA$191.24
You save:  CA$54.64
A$151.87
List Price:  A$212.63
You save:  A$60.75
S$135.20
List Price:  S$189.29
You save:  S$54.08
HK$781.33
List Price:  HK$1,093.90
You save:  HK$312.56
CHF 90.72
List Price:  CHF 127.01
You save:  CHF 36.29
NOK kr1,092.46
List Price:  NOK kr1,529.50
You save:  NOK kr437.03
DKK kr694.20
List Price:  DKK kr971.90
You save:  DKK kr277.70
NZ$167.15
List Price:  NZ$234.02
You save:  NZ$66.86
د.إ367.25
List Price:  د.إ514.16
You save:  د.إ146.91
৳10,946.16
List Price:  ৳15,325.07
You save:  ৳4,378.90
₹8,342.71
List Price:  ₹11,680.13
You save:  ₹3,337.42
RM473.95
List Price:  RM663.55
You save:  RM189.60
₦123,487.65
List Price:  ₦172,887.65
You save:  ₦49,400
₨27,847.21
List Price:  ₨38,987.21
You save:  ₨11,140
฿3,679.53
List Price:  ฿5,151.49
You save:  ฿1,471.96
₺3,232.18
List Price:  ₺4,525.18
You save:  ₺1,293
B$511.10
List Price:  B$715.57
You save:  B$204.46
R1,851.52
List Price:  R2,592.21
You save:  R740.68
Лв181.98
List Price:  Лв254.78
You save:  Лв72.80
₩135,881.87
List Price:  ₩190,240.05
You save:  ₩54,358.18
₪371.60
List Price:  ₪520.25
You save:  ₪148.65
₱5,713.97
List Price:  ₱7,999.79
You save:  ₱2,285.82
¥15,308.41
List Price:  ¥21,432.39
You save:  ¥6,123.98
MX$1,693.57
List Price:  MX$2,371.07
You save:  MX$677.49
QR364.01
List Price:  QR509.63
You save:  QR145.62
P1,365.33
List Price:  P1,911.52
You save:  P546.18
KSh13,468.65
List Price:  KSh18,856.65
You save:  KSh5,388
E£4,794.02
List Price:  E£6,711.82
You save:  E£1,917.80
ብር5,699.43
List Price:  ብር7,979.43
You save:  ብር2,280
Kz83,741.62
List Price:  Kz117,241.62
You save:  Kz33,500
CLP$94,755.52
List Price:  CLP$132,661.52
You save:  CLP$37,906
CN¥723.62
List Price:  CN¥1,013.10
You save:  CN¥289.48
RD$5,785.38
List Price:  RD$8,099.76
You save:  RD$2,314.38
DA13,457.99
List Price:  DA18,841.73
You save:  DA5,383.73
FJ$225.30
List Price:  FJ$315.43
You save:  FJ$90.13
Q775.21
List Price:  Q1,085.33
You save:  Q310.11
GY$20,876.73
List Price:  GY$29,228.26
You save:  GY$8,351.52
ISK kr13,989.60
List Price:  ISK kr19,586
You save:  ISK kr5,596.40
DH1,008.69
List Price:  DH1,412.20
You save:  DH403.51
L1,771.31
List Price:  L2,479.90
You save:  L708.59
ден5,730.13
List Price:  ден8,022.42
You save:  ден2,292.28
MOP$803.11
List Price:  MOP$1,124.38
You save:  MOP$321.27
N$1,860.85
List Price:  N$2,605.27
You save:  N$744.41
C$3,673.63
List Price:  C$5,143.23
You save:  C$1,469.60
रु13,311.40
List Price:  रु18,636.50
You save:  रु5,325.09
S/375.46
List Price:  S/525.66
You save:  S/150.20
K383.63
List Price:  K537.10
You save:  K153.47
SAR375.03
List Price:  SAR525.05
You save:  SAR150.02
ZK2,685.42
List Price:  ZK3,759.69
You save:  ZK1,074.27
L463.14
List Price:  L648.42
You save:  L185.27
Kč2,328.17
List Price:  Kč3,259.54
You save:  Kč931.36
Ft36,248.95
List Price:  Ft50,749.98
You save:  Ft14,501.03
SEK kr1,083.98
List Price:  SEK kr1,517.62
You save:  SEK kr433.63
ARS$87,816.53
List Price:  ARS$122,946.66
You save:  ARS$35,130.12
Bs689.12
List Price:  Bs964.79
You save:  Bs275.67
COP$389,940.87
List Price:  COP$545,932.82
You save:  COP$155,991.94
₡50,893.45
List Price:  ₡71,252.86
You save:  ₡20,359.41
L2,475.75
List Price:  L3,466.15
You save:  L990.40
₲747,391.81
List Price:  ₲1,046,378.43
You save:  ₲298,986.62
$U3,833.15
List Price:  $U5,366.56
You save:  $U1,533.41
zł402.67
List Price:  zł563.75
You save:  zł161.08
Already have an account? Log In

Transcript

Welcome back everyone in this video Our goal is to create a parent target blueprint from which all other target blueprints we create are derived from. Think of this as the master templates. This is a target which our player will be able to shoot in the level. Now we're going to have a few different types of targets some that gives the player points, some that give them a speed boost, some that adds more time to their level timer. This is going to be the master copy. So without further ado, in the folder that we have been working in, up until this point, let's right click, do a new blueprint class based on actor and BP underscore target parent makes for a fine name.

Go ahead and double click to open that guy up. Let's add a few components. Starting with a box collision, I am going to name this trigger volume. Just a sneak peek as to what we're going to be doing here, we are going to make some targets be capable of getting spawn when we overlap a trigger volume like this guy right here. We are also going to be making another blueprint that is going to act as a set swatter, where we can spawn several targets all at the same time. This one is meant for the single spawn.

All right, the default scene route here, select that one more time we're going to add another component. This is going to be sphere collision and I will call this target collision. This is going to be the thing we're going to check to see if our player has shot the target and if we should destroy the target. With this component selected, let's add another component Let's add a static mesh target would make a fine name for this this will be the visual representation of a target. Select your target collision once more. Let's do Add Component and look for a text render a component.

I'm going to call this point value using PT value as my label for that we are going to print out on this what the text should be. So if it's worth you know 500 points this will show as a 500. Select your target collision once more. Let's add a component and this one we are going to add a spotlight Why are we adding a spotlight because I want to make our targets a little bit more visible so we're going to actually shine a spotlight on our target mesh spotlight to find fine name for that. I'm good. All right.

Select your trigger volume at the Top of the components list. Let's go ahead and set some details pertaining to that. Personally I'm going to change is the box extents over here, I'm just going to thicken it up a little bit to be 50s across the board in the x, y and the Z. Next I'm going to come down into its collision settings and instead of overlap all dynamic, I'm going to change it to custom because I do not want our projectiles being blocked by that I want them to overlap that. Next I'm going to select our target collision. And while we are here in the collision section, let's change some of the collision settings for this let's go ahead and change the collision preset to also be custom and make it so that our projectile can overlap this one.

Additionally, scroll on up because I want to Change the sphere radius here, the sphere radius. Let's change that to 105. And then I want to change the rotation of this particular radius to be negative 90. And I know you may be saying, hey, that's just, that's just a sphere. What doesn't matter if we rotate it, but we rotated all the components underneath it as well, which is something we want. Um, Next, select your target mesh, you need to find out what type of visual representation you want to have a targets.

You can choose anything you want. I'm going to keep it really, really basic here. So I'm going to go into my Static Mesh portion of the Details panel and I am going to do a search for a sphere and there are all kinds of spheres the one that I am looking for is is that that one or is it this one? I think it's this one and in the tooltip, it shows the path Engine engine meshes. Let me try this one, I might have the wrong one. That is the wrong one.

I didn't want it that big. So I wanted the one that is in this path. If I hover over it, it'll show that path engine basic shapes, sphere. With that set, I'm going to change the scale of this, and I'm going to change it. I'm going to unlock this so I can make the XP to the Z, I'm going to change to B two and the y I'm going to be changing that to be point two. So now what you've seen I have done I've essentially made kind of a disc here like a flat target.

And as you notice, it's no mistake that I made it so that our target collision fits nicely around it. That's why I set the sphere radius to be 105. So it would be perfectly fitting around that. You're a genius, Mr. quandra. Yes, I know. Okay, um, let's go to point values.

So like that one. Let's go ahead down in the Details panel and flipping my page and notes. I'm going to set the location for this text to be a y value of 10. The z rotation I'm going to set to be 90. You see it appear over here. I'm just gonna set the text to be some dummy value of 9999.

That's just a placeholder. we'll swap that out later on. I do want to change out the world size. This is way too small, so I'm going to change that to be 100 And what else do I want to change here the horizontal alignment, I want to be center. And the vertical alignment, I want to be text center as well. So that's going to center it up pretty nicely.

Let me see where the text render color. I'm going to change the R here to be zero, the G to be zero and the B to be zero is well. Black now Yeah, yeah, I'm gonna change that to be black because I do believe I forgot to set a material on my target, which I did. I was like, Wait black on this black target, what am I thinking? So one thing I need to change here, go back to your target components. I forgot to set a material on it.

The one I'm going to set as a default is called basic shape. material and that'll make that text pop out a little bit more. I knew there was a reason I made it black. All right, that is looking all spiffy The next thing we need to do is change our spotlights parameters. I am going to change the location of this, the Y location is going to be 200 the rotation I'm going to set x rotation of 180 and the Z rotation to the negative 90. So it's shining it on our target a few more things to do before we wrap this up, I'm going to change the intensity setting of our spotlight to be 3000.

I'm going to change the outer cone angle to be simply 30. So it's kind of shining. On our target, I'm going to change the attenuation radius, that's how far our spotlight reaches something like 250. So just barely reaches that. And as for the intensity, I'm, you know, I'm not sure if that's gonna be great or not, I don't want to make it too bright. Otherwise you get that kind of effect.

So I'll leave 3000 for now, maybe we'll change that at some later time. Last thing I'm gonna do here is I'm just gonna tick off the check shadows just to help improve performance a little bit. Other than that, I think that's gonna do it. Okay, so let's go ahead and Compile and Save. We have now made a master target blueprint that all of our blueprints will be derived from. So guys, that's gonna do it all for this one.

We will 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.