Skill Acquire - Base Class #3

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
€96.21
List Price:  €134.70
You save:  €38.49
£79.93
List Price:  £111.90
You save:  £31.97
CA$143.79
List Price:  CA$201.32
You save:  CA$57.52
A$160.48
List Price:  A$224.69
You save:  A$64.20
S$135.83
List Price:  S$190.17
You save:  S$54.33
HK$777.07
List Price:  HK$1,087.93
You save:  HK$310.86
CHF 89.45
List Price:  CHF 125.24
You save:  CHF 35.78
NOK kr1,141.95
List Price:  NOK kr1,598.78
You save:  NOK kr456.82
DKK kr717.64
List Price:  DKK kr1,004.72
You save:  DKK kr287.08
NZ$177.52
List Price:  NZ$248.53
You save:  NZ$71.01
د.إ367.25
List Price:  د.إ514.17
You save:  د.إ146.91
৳11,994.74
List Price:  ৳16,793.12
You save:  ৳4,798.37
₹8,496.63
List Price:  ₹11,895.62
You save:  ₹3,398.99
RM450.75
List Price:  RM631.07
You save:  RM180.32
₦155,628.43
List Price:  ₦217,886.03
You save:  ₦62,257.60
₨27,934.96
List Price:  ₨39,110.06
You save:  ₨11,175.10
฿3,444.45
List Price:  ฿4,822.37
You save:  ฿1,377.92
₺3,518.54
List Price:  ₺4,926.10
You save:  ₺1,407.55
B$617.53
List Price:  B$864.57
You save:  B$247.04
R1,837.80
List Price:  R2,572.99
You save:  R735.19
Лв188.31
List Price:  Лв263.64
You save:  Лв75.33
₩144,872.25
List Price:  ₩202,826.95
You save:  ₩57,954.69
₪364.89
List Price:  ₪510.86
You save:  ₪145.97
₱5,883.01
List Price:  ₱8,236.45
You save:  ₱2,353.44
¥15,672.80
List Price:  ¥21,942.55
You save:  ¥6,269.75
MX$2,028.91
List Price:  MX$2,840.56
You save:  MX$811.64
QR366.34
List Price:  QR512.89
You save:  QR146.55
P1,382.59
List Price:  P1,935.69
You save:  P553.09
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,091.27
List Price:  E£7,127.98
You save:  E£2,036.71
ብር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$99,155.08
List Price:  CLP$138,821.08
You save:  CLP$39,666
CN¥729.81
List Price:  CN¥1,021.77
You save:  CN¥291.95
RD$6,104.52
List Price:  RD$8,546.58
You save:  RD$2,442.05
DA13,454.60
List Price:  DA18,836.98
You save:  DA5,382.37
FJ$232.11
List Price:  FJ$324.96
You save:  FJ$92.85
Q773.21
List Price:  Q1,082.52
You save:  Q309.31
GY$21,000.46
List Price:  GY$29,401.48
You save:  GY$8,401.02
ISK kr13,903.60
List Price:  ISK kr19,465.60
You save:  ISK kr5,562
DH1,007.40
List Price:  DH1,410.40
You save:  DH403
L1,841.78
List Price:  L2,578.57
You save:  L736.78
ден5,922.50
List Price:  ден8,291.74
You save:  ден2,369.23
MOP$803.42
List Price:  MOP$1,124.82
You save:  MOP$321.40
N$1,834.70
List Price:  N$2,568.66
You save:  N$733.95
C$3,694.32
List Price:  C$5,172.20
You save:  C$1,477.87
रु13,665.58
List Price:  रु19,132.35
You save:  रु5,466.77
S/374.71
List Price:  S/524.60
You save:  S/149.89
K406.86
List Price:  K569.63
You save:  K162.76
SAR375.72
List Price:  SAR526.02
You save:  SAR150.30
ZK2,777.96
List Price:  ZK3,889.25
You save:  ZK1,111.29
L478.81
List Price:  L670.35
You save:  L191.54
Kč2,418.25
List Price:  Kč3,385.65
You save:  Kč967.40
Ft39,800.47
List Price:  Ft55,722.25
You save:  Ft15,921.78
SEK kr1,103.66
List Price:  SEK kr1,545.17
You save:  SEK kr441.50
ARS$102,190.76
List Price:  ARS$143,071.15
You save:  ARS$40,880.39
Bs693.61
List Price:  Bs971.08
You save:  Bs277.47
COP$437,799.12
List Price:  COP$612,936.28
You save:  COP$175,137.16
₡50,480.33
List Price:  ₡70,674.48
You save:  ₡20,194.15
L2,548.03
List Price:  L3,567.35
You save:  L1,019.31
₲784,126.06
List Price:  ₲1,097,807.85
You save:  ₲313,681.79
$U4,460.41
List Price:  $U6,244.75
You save:  $U1,784.34
zł409.96
List Price:  zł573.96
You save:  zł164
Already have an account? Log In

Transcript

What I want to do next here is jump on over to this blueprints Event Graph, click this tab right here. And you can see some nodes existing out here some event knows Event Begin Play is linked to our parent Begin Play because this blueprint is a child of this parent class right here that we created that leave, we can get rid of these other two events out here just to clean things up a little bit. Do not get rid of this event, Begin Play, parents Begin Play. Okay, the first thing I want to do is I want to add something called a timeline in a timeline allows you to modify the value of a variable over time, which is something I want to do I want to modify the position of this little book looking assets over time. So we're going to jump back over to my Event Graph.

I'm going to right click in the graph and I am going to add a title And I'm going to call this skill mesh movements. Then I'm going to double click on this timeline. This is a special node that allows us to add some information, quote unquote inside of the node, so I'm going to double click on it. And inside of here I want to add a track, I'm going to add a float track and I'm going to call this movements. So this is going to allow me to change a float variable over time. In this case, we're going to use it to modify the Z position.

So I'm going to right click in this graph here, and I'm going to add a key. This first key I'm going to set to be zero for time zero for value. I'm then going to add a second key I'm just right clicking and moving this down a little bit, adding a second key. This next one, I'm going to set to eight Time of 2.5 seconds and a value of one. And then I'm going to hold down right click and move to the right here a little bit going to add a third key. The time for this is going to be five seconds in the value is going to be zero.

Now, I can't see all of my different keyframes here in view. So what you can do a handy trick is I'm just going to click on the graph here and type the F key. And that's going to frame up all of my keyframes here. Something I want to do with all these points is I want to left click and drag around all of them. It's a little tricky like this. And you'll know they're highlighted when they're all yellow, and then you can right click on any one of them and set their key interpolation to auto.

So you have this sort of a graph right here. This is going to create a smooth transition. So essentially what we're going to be doing is over the course of five seconds that Book looking messy saw before it's going to rise up, then float down and then we're going to loop this. Then we're going to start at the beginning again, rise up, go down, rise up, go down, etc. Now in order to loop this, I need to check this loop box at the very top. And also, I want to set this timeline to autoplay.

So make sure you have these two checkboxes checked as well. Length of five over here is perfect, just what we want. I'm going to exit out of this timeline and come back to our Event Graph. Okay, with that, just going to create a little bit more space here. I'm going to bring in our two variables our to vector variable skill, begin the position and skill and position and place them about like so in our graph. And what we want to do is we want to right click in type in alert vector.

And I want to plug begin position into a ended position into B. And our movement is going to plug into this alpha value. And I'll explain what all this is doing. After I get this all hooked up. Ok, then we got to think what is the thing that we want to move up and down between our begin position and our end position? Well, I want to use this skill mesh you remember that is the bulk looking thing right there.

So I'm going to drag a reference to our skill mesh right into our Event Graph. And then off of this, I'm going to drag off in type in set relative location. And as our timeline updates, I want to change the relative location of our Skill mesh like so, relative to the default scene route here, I'm going to take the return value from our loop a vector and plug that as the new location over here. So let's back this up a little bit. Now, if I hover over my loop vector note here, it gives you a little tooltip. And it says, It linearly interpolate.

That is it goes between point A and B based on our alpha input. Alpha is 100% a, when alpha is zero and 100%, b when alpha is one so to translate this, when the alpha value being plugged in from our movement is a value of zero like the very beginning of our timeline, our value is zero. Then we are going to be at skill begin position, the a value as our alpha value moves to one Like we are doing here in our timeline, right up here at the midway point, the value of this movement track is one this float variable. When that is one, we are going to be 100% or all the way to our skill end position. So you can see that this is essentially going to be ping ponging back and forth between our begin position and our end position driven by our movement going from zero to one.

Okay, hopefully that made some sense there. I'm gonna left click and drag out a marquee selection, tap that C key and I'm going to call this skill mash movements, like so. And what we can do here is Compile and Save and let me drag this into the level. I'm going to go back to my test map here and find our bloopers prints actor's skill base, pop this on out here. Now I know that this is a little bit ugly because we don't have a decal out there yet. Gonna bring it up from the air and hit the end key.

Let's bring this into view like so. And if I do alt plus s, Alt key plus s, sorry, plus S or rather let me just jump in and play that'll be easier to see. There you can see the book actually going up and down. That's pretty cool, right? And you can see that that one particle effect is attached to the book so it's floating right along with it. Other things to note here, you can see as I selected my blueprint here, I've got this skill, end position and skill begin position.

That we're equal to our skill begin position and skill end position variables here, right. So I said I wanted to make these instance editable, which means back here in our level, we can see our skill begin position and our skill end position. values are default values. What these little triangles allow you to do these 3d widgets, they allow you to modify it, these end positions or beginning positions in a very visual way. So let me take this end position here. And just to demonstrate this, I'm going to drag this all the way on up like so.

And you can see it updated my skill end position over here to be 276. Let's go crazy. I'm just gonna go way high like that. Now if I was to play, you can see how it is going between the skill begin position and end position right So I want to set that back because I didn't really like it going quite that high. I think I had it to 200 something like that. So just know that now you've got an easy way to modify how much your skill mesh is gonna Bob up and down as it animates.

Alright guys, that is gonna do it all for creating this base class here. We're going to be creating some children of this in just a moment. That's gonna do it all for this video. 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.