Timer Widget - Creation

7 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.83
List Price:  €134.16
You save:  €38.33
£79.50
List Price:  £111.30
You save:  £31.80
CA$143.90
List Price:  CA$201.46
You save:  CA$57.56
A$160.64
List Price:  A$224.91
You save:  A$64.26
S$135.72
List Price:  S$190.01
You save:  S$54.29
HK$776.05
List Price:  HK$1,086.50
You save:  HK$310.45
CHF 90.18
List Price:  CHF 126.26
You save:  CHF 36.07
NOK kr1,135.65
List Price:  NOK kr1,589.95
You save:  NOK kr454.30
DKK kr714.78
List Price:  DKK kr1,000.72
You save:  DKK kr285.94
NZ$176.84
List Price:  NZ$247.59
You save:  NZ$70.74
د.إ367.26
List Price:  د.إ514.17
You save:  د.إ146.91
৳11,966.34
List Price:  ৳16,753.36
You save:  ৳4,787.01
₹8,552.86
List Price:  ₹11,974.35
You save:  ₹3,421.48
RM446.65
List Price:  RM625.33
You save:  RM178.68
₦154,954.50
List Price:  ₦216,942.50
You save:  ₦61,988
₨27,870.41
List Price:  ₨39,019.69
You save:  ₨11,149.28
฿3,411.05
List Price:  ฿4,775.61
You save:  ฿1,364.55
₺3,526.84
List Price:  ₺4,937.72
You save:  ₺1,410.88
B$622.57
List Price:  B$871.63
You save:  B$249.05
R1,877.39
List Price:  R2,628.42
You save:  R751.03
Лв187.63
List Price:  Лв262.69
You save:  Лв75.06
₩147,402.34
List Price:  ₩206,369.18
You save:  ₩58,966.83
₪366.10
List Price:  ₪512.56
You save:  ₪146.45
₱5,787.77
List Price:  ₱8,103.11
You save:  ₱2,315.34
¥15,786.12
List Price:  ¥22,101.20
You save:  ¥6,315.08
MX$2,037.77
List Price:  MX$2,852.96
You save:  MX$815.19
QR364.86
List Price:  QR510.83
You save:  QR145.96
P1,392.51
List Price:  P1,949.57
You save:  P557.06
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,086.12
List Price:  E£7,120.77
You save:  E£2,034.65
ብር12,775.73
List Price:  ብር17,886.54
You save:  ብር5,110.80
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$99,000
List Price:  CLP$138,603.96
You save:  CLP$39,603.96
CN¥729.85
List Price:  CN¥1,021.82
You save:  CN¥291.97
RD$6,089.32
List Price:  RD$8,525.29
You save:  RD$2,435.97
DA13,523.04
List Price:  DA18,932.80
You save:  DA5,409.76
FJ$232
List Price:  FJ$324.81
You save:  FJ$92.81
Q771.86
List Price:  Q1,080.63
You save:  Q308.77
GY$20,936.54
List Price:  GY$29,311.99
You save:  GY$8,375.45
ISK kr13,809.61
List Price:  ISK kr19,334.01
You save:  ISK kr5,524.40
DH1,010.12
List Price:  DH1,414.21
You save:  DH404.08
L1,844.84
List Price:  L2,582.85
You save:  L738.01
ден5,904.06
List Price:  ден8,265.92
You save:  ден2,361.86
MOP$800.42
List Price:  MOP$1,120.62
You save:  MOP$320.20
N$1,875.49
List Price:  N$2,625.76
You save:  N$750.27
C$3,684.93
List Price:  C$5,159.05
You save:  C$1,474.12
रु13,704.96
List Price:  रु19,187.49
You save:  रु5,482.53
S/374.64
List Price:  S/524.51
You save:  S/149.87
K400.61
List Price:  K560.88
You save:  K160.26
SAR375.43
List Price:  SAR525.61
You save:  SAR150.18
ZK2,775.82
List Price:  ZK3,886.26
You save:  ZK1,110.44
L476.97
List Price:  L667.78
You save:  L190.80
Kč2,418.02
List Price:  Kč3,385.32
You save:  Kč967.30
Ft39,407.88
List Price:  Ft55,172.60
You save:  Ft15,764.72
SEK kr1,098.38
List Price:  SEK kr1,537.78
You save:  SEK kr439.39
ARS$102,864.61
List Price:  ARS$144,014.57
You save:  ARS$41,149.96
Bs691.77
List Price:  Bs968.51
You save:  Bs276.73
COP$439,472.10
List Price:  COP$615,278.53
You save:  COP$175,806.42
₡50,793.98
List Price:  ₡71,113.60
You save:  ₡20,319.62
L2,543.82
List Price:  L3,561.45
You save:  L1,017.63
₲778,417.60
List Price:  ₲1,089,815.78
You save:  ₲311,398.18
$U4,386.09
List Price:  $U6,140.71
You save:  $U1,754.61
zł409.57
List Price:  zł573.42
You save:  zł163.84
Already have an account? Log In

Transcript

Welcome everyone. Well, we have our white magic selection menu completed. And you may assume that now is the time for us to go about creating the functionality for our white magic skills. I'm talking about transforming it to mist. I'm talking about our Lens of Truth skill that is going to allow us to see through some walls and to jump on to some invisible platforms, etc. Well, we're not quite there yet.

In this series of videos, we are going to work on creating a widget that we can display above our character whenever they've activated their white magic skill. Now this widget is going to consist of a meter as well as text, and it's going to represent how long this white magic skill will stay active before it auto deactivates. Now, I'm currently in a previous version of this project that I completed before making this course. I'm just gonna jump in and play and show you what we are going to be building. Okay, so when I press my activate white magic skill here, you're going to see a meter appear above my character's head. And now I've activated my Lens of Truth ability and notice that once the meter depletes it auto D activates.

So that's what we are going to be aiming to create over the next few videos. Okay, so we can just close out of this project for the time being and open up our current version of the project we are working in. And the first thing we're going to do here is come under our Metroidvania widgets folder in inside of here we're going to create a new Widget Blueprint by right clicking come in coming under the user interface option and selecting Widget Blueprint and we will call this w BP underscore w a magic underscore timer. Then let's double click on it to open it up. And we're just gonna Going to add a couple of widgets here. Over in the left hand side, the first widget that we are going to add is a progress bar that was a meter that you saw over our character's head.

Let me just zoom to fit. Right here. Let's add a progress bar on top of our canvas panel. I'm going to select it hit f2 and call this w magic underscore timer. And let's set some deef do some what am I trying to say here, set some details for it right away almost defaults, details defaults kind of the same thing. Um, let's go with an anchor of this middle bar.

This horizontal middle bar right here should do us some good. And with that in place, going to come up and set our offset left to be 100. The position y is going to be zero the offset right We'll be 100 the size y we're going to set to be 20. And scrolling on down a little bit our style here, we want to slot in an image here. For our style, we're going to set this to be our T ink black T, ink, black. That's going to be the background of our meter.

Essentially, now it's kind of squished together and I know it looks rather elongated now, but when it's above our character's head, it's gonna look pretty nice. And then scrolling down a little bit in here, let's set the tint for this actually, let's go background image tint 111 the a value let's go to point seven, five to make that a little bit see through not much just a little bit. Then if we scroll on down a little bit under our fill image, this is going to be the portion of the meter that we see deplete And for this I'm going to slot in holding down left click releasing left click t underscore, Inc. underscore pink. And for this we can leave the tent at a full a value of one as well. draws box draws box. Okay, that's looking all fine and dandy.

Next widget that we are going to add to this is going to be scrolling down under our palette let me just peel this back, a text widget not a text box, but a text widget. Let's drag and drop this on top of our canvas panel. I'm going to select it hit f2 right away to rename it. And we'll just call this w magic underscore name. Then over in the Details panel, we're going to set the anchor for this. The anchor is going to be this middle box right here, smack dab right in the And with that anchor set, I'm going to set the position x to be zero, the position y is going to be negative 20 relative to that anchor point, let me just zoom on in a little bit negative 20.

The alignment we will set to be point five and the X and point five in the y and we will set it to be size to the content. So depending on the size of our contents here, it will size this box there appropriately. The text for this doesn't really matter because we are eventually going to bind this. The appearance though however, let's adjust some of that we are going to want to go for a straight yellow here. So under color and opacity are one g one the B Let's set that to zero so that we get this yellow text. The font family we will set this to be Gothic letters.

And I'm going to set the size here to be fifth teen. So it's gonna look pretty tiny right here. I know that kind of click off of this. This isn't exactly what it looks like when it appears above our character's head, but Whoa, Just you wait. Alright guys, with that all done, let's zoom to fit here and kind of see what this is gonna look like one more thing I want to make sure that we do here with our w magic timer. Let's go ahead and select that one more time, I believe I may have forgotten one thing with that.

Let's set our percent here to one just so you can see essentially what this is going to look like. I know you see some blue coloring here, but trust me it will be pink in the long run. But that is to come later. All right, and we do want this to fill up left to right. Note that as well. Alright, one more Compile and Save.

Guys. That'll do it all for this video. more work to be done. 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.