All language subtitles for 28. Creating the Victory Screen

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

We have a little bit more foundational

To do

And then we're going to spend the rest of the course

Creating content in polishing a game

But they are loose ends we have the time

And the reason that we are mostly just doing Foundation work for the first half of this course

Is that that's actually some of the easiest

Stuff that were going to do

And soul it's useful to do that stuff first to get you all acclimated with how you build out

Me systems in Godot

And then we're going to get into

Complicated things

As we start polishing the game

And creating new abilities in new anime types of things that need

So what are the loose ends we need a tie up is that we don't have anyway

Winning the game

And right now we have the game set to stop

Counting at 1

And that's fine for Dubai purpose

We just need something to show up

Like a victory screen

For the player to celebrate the victory and also to prom to the player

To return to the main menu which we also don't have

Subtitled by online-courses.club We compress knowledge for you!

And things like that

So let's go ahead and just build that

And the first thing I do is work going to create a new scene with

Route type

Canvas layer

Ok and let's go ahead and rename this canvas layer 2

Victory screen

Saved

Into scenes

UI

Victory screen

What are in margarine contain

As a child of that node

And then we're going to click this

Anchor

Reset offset button appear

And then select the bottom right for

Option

Ok perfect

And then we're going to do something very simple we're going to create a new panel container

Underneath the margin Titania

Let's create a new vbox container underneath that panel container

What's go ahead in Adelaide

And let's underneath

In that labour

Let's

Type in the tour

Victor

And for the label what we're going to do is we are going to change the horizontal alignment to be Centre

What's change the protocol I meant to be centre as

What's scroll down

Until we see the font size is absent

Let's check the font size and change it to

24 pixels so it's bigger

And will be replacing this font later on

Animals create another label

Interview box container

And this labour

We're just going to say

You won

ASDA

Alright let's create a button underneath a box container

Was bright in the text Reece

Is the first option

What's control duplicate that button

And write

So this button let's rename this button no to restart button

And let's rename the second button there to quit button

Alright so this is looking pretty ugly and what we're going to do to fix that is very simple we're going to go to a panel container so

Scroll down to the size settings and change these both to shrink

And now it's looking a little bit

What we can do to make this look even better than the

Is let's create a margin container under the

The panel container

Let's drag it up

So that it is

Just below the panel contain

And let's Drive the vbox container and drag it into the margin container

To make it a child

Salad select that margin container that's underneath the panel container

Scroll down to

The

Constant

Override here margin-left margin-top margin-right margin-bottom

And Lettuce

8 for all of those

And you can use tab to go to the

In futsal 8

8

Any other thing that we can do to make it look a little bit better is we can change the minimum size of this March

Container so select that margin container again

When scroll up to the cost of minimum size

And let's set the

To something like

Volume 50

Or let's do 180

So we've got a more respectable looking victory screen

Ok let's Mark the restart button as unique name by right clicking

And cooking accessories unique name

I'm going to do this

Alright

Let's add a script to the Victory

And the default settings are ok

Let's override

The ready-made

We're going to do the same thing that we did for the upgrade screen and that is were going to write get 3

Dot paused is equal to true

And then what we're going to do in

The ready method as well as we're going to access the restart button by doing dollar sign

Percent

Restart button

Gonna connect

To the

Pressed Sydney

So pressed that connect

And it'll be a middle

When the reset button is pressed

And again

You can click the restart button in your scenery over here

And then click the new tab and you can see that these are but

Signals

So we're going to connect to the Preston on restart

Let's in that can

Function call lists

Do on restart

Button

What does a function that what have to define

What I'm gonna do is going to copy this line

And paste it below

I changed the first

No

Here to quit button instead of restart button

And then change the method name here to on

Quick

Buffalos method

On restart

But

Press

What's this right pass for now

And then on quit

Button

Crest

And same to you working right path

Ok when we start is pressed we're going to do something very basic for now

This is going to change in the future I'm sure

But what we're going to do is we're going to do

At 3

Change

Underscore

Scene

24

And what is this going to do is this is going to load

The file at the path we provide

And change the

Seemed tree

2

Seen as the

So let me explain it in a better way

If you got a project project settings

Can we go to the run option under application

You can see that the main seen here

Rest seems mean

Me and Dad tsyn

Right

What is going to do is this is essentially going to on boot up the game is going to add all of your

Auto load nodes so we have one

To the same tree

And then it's going on load

Instance

This scene here and add that to the scene tree as well as your current

Scene

I know this

Using the word seen over and over again is a little bit confusing

Essential is going to take this note and this is going to be the no

That is

Running the game is actually in that's what I mean

But what we can do as we can say

We want to change the route

Node that is running again

With this change theme to four

So we could have let's say an entirely new environment or in Thai

Will a new game like if you're doing maybe a game of Mini games or something about nature

Let's Commodus

It's going to rain

And I can show you

What does looks like so let's go and around the game or in a pause

Just waiting on a you go to a remote team

So this is what I'm talking about right you have your room

Which all games have

Then this is our game events are allowed and then the main

Is being loaded from our main scene

So this is just saying what is the

What is the note that is loaded

That is essentially is at the

Of your entire scene

Alongside

And we can swap that

And the way that we can sort that out

Is we can use this

Get 3

Change team to file and in this case we just going to have it point to rest scenes

Main

Main.ts

What does going to do is that going to remove our current main from the same tree over here

And then it's going to load this file

And replace that

Effectively it's going to remove our current game state

Load up a new game state and put it back in

And so it's going to be at

We were starting the

Over

Again

What is the purpose of the on reset button

If that's not clear you can always go ahead and read the change seem to file documentation

You will explain in a little bit more detail what's going on

You'll see how that works

And then on quick button press what we're going to do in here as we're going to say get 3

Dart

And then she's going to close

We need this victory screen to actually be spawned in so I'm going to go back to my main scene here

And we have the arena time manager here so let's go ahead and open up this script

And we don't really have much in the way of

Functionality

So I'm going to do is I'm going to create an export variable above this on red

Add Explorer

Bar

Victory screen

And I'm gonna call this

Victory screen

Sea inlet say

And then this is a type of packed scene

How many go to my Arena time manager seen by clicking the opening editor button here

I'm gonna click that rude mode

Go back to my inspector time

And then I'm going to in my file system search for Victory screen

And drag over the tsyn on the

So now we have the victory screen scene loaded

And we need to connect to this timer

Time out right because our timer is currently set

Have a great time of 60

So when that timer runs out

We want to

Basically display the Vic

Search create a new function actually not a new function working at override

The ready method here

And we're going to say timer

Time out

Subtitled by online-courses.club We compress knowledge for you!

Connect

On

Timer

Timeout let's Create that function

And I am going to start picking up the pace a little bit

The programming because we've done a lot of this already

Console

Removal of it faster Service course can be finished in a reasonable amount of time

In this on timer timeout what we're going to do is going to spawn this victory screen

So we're going to say

Via

Victory

Screen

Instance is equal to Victory screens

Scene

Shark instancia

We're going to

That is a child

And that should basically be it now there is one thing we need to do

Which is let's go and open our victory screen seen again

You'll notice that was setting the tree to paused in here

Right so there's a couple of problems we need to set the tree to unpause

When we click the restart button so it can't be this line

Paste it above

The change the M25

NN change the park

False

And then we need to go to a victory screen route

Scroll down to the process mode and make sure that it's

Always

So that this does not pass

Itself

Let's go back to Arena time manager

For the timer I'm just going to turn it down to five seconds to see if the

Play some victory screen mobile

So let's go ahead around the game

As soon as it's 5 seconds we should save it

For Victory and I can click restart

2 minutes

And you can see that the game restarts from the beginning and we should see a victory again

And let's go ahead and

Quit

And the game clothes

So that's a very rough

Victory screen in the next lesson we're going to do something very similar were going to create the

Death

Stream

The hello player that's for the players

I think it's a lot

And I'll see you in that lesson

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.