Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Atlas take what we've learnt with the
Particles for the player in let's go ahead in a play that to the enemies as well so just like me
In with the players particles the first thing we're gonna do is we're going to start in Photoshop
Double click on my Photoshop file for particle dust
I'm just going to go off I'll say that as I was going to save it as something new
The skin by particles
Can I just particles Square
Very simple particle
Hey we can make a little bit broken as well we could do a square like this delete the previous layer
Play maybe weekend
Cut out some triangles from it like this
Something like that just like a little
Broken piece of something
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Right so that we can change its colour in Rhos in a trimmer
And say that
And then I'm going to do is jump back in the unity here
And I'm gonna go ahead in duplicate this particle dust material
Duplicate
Animal cordless particles
Purple square and I'm just going to drag the square
Into the texture field
I'm gonna go ahead and just duplicate
Particle dust app that with ctrl d
And I'm gonna call this not particles Square the reason I called the material and the image of particles
Where is because you can use that Square in multiple ways right so really create a lot of different particle prefab
I love that one image
So this was going to be called particles
Enemy
Explosion
Search strike that into the same here
I'm gonna go ahead and just like we did previously when testing out whether are particles look good
Let's go ahead and just do
A burst
Nike sale
Elementary particle square on top of it there is our particle Square the shape from
Cone
2/8 phere
See that
So now the particles are exploding
In a circular form
And I also guys I want the colour to match the enemies re if you if you record
Pink colour on the box is the same as the anime somebody going to start colour here
Crank up the Alpha
Click the eyedropper tool
Click here
And you know something interesting
It's not actually that colour right
It's now sort of an overlaid blend
Or an additive blend
And that's because in the particle Square here
It's a day out of
So I'm in a change it from a particle
To a simple sprouts and the sprites here
I'm just going to choose
Default
How to go back to our particles here in hip play
You can see now it's the correct colour
It's a little large and a star with 0.1 and then go 2.2
So now we have
A random sizes between point one in .3 occurring
For an explosion
Can I watch My Generation the last a long time so something like maybe 5 seconds
Something like that
Ok that looks good
And also let's go ahead and make a collision occur
So it can collide with the ground
The spring this down to about where enemy would be
Intestinal
Give some for some reason it's not touching the ground
Why is that
Well it's because we need a set type 2 world
Do we need to set mode to 2D
We wanted to collide with only
The default
Play
Here we go
Tsunamis pieces bounce all over the place it's really cool so what we can do is actually
Make it Devon
As it touches the ground
So we can set the bounce to not wine which one is going to make it bounce consistently the same height
Over and over and over again
We could send it to some kind of decimal number 8.7 and so that means it's going to slowly stop bouncing
And now we can make the start speed pretty high and it will be round between two constants so we can start a 3
How about we go to eat
Tippler
Add awesome really really fine
K&N also let's change it so that the colour of the lifetime
Is one all the way up until the end of there
There we go
Calculator needs to be some friction
Hopefully hear it right damping so we can do .5
Yeah there we go
That's great
Awesome so we had a bit of .5 that allowed them to be allowed some friction
And I kind of want the explosion to be a little bit bigger guys let's make the start speed 15
Awesome can I get pub and I think that we should start a little bit higher for the minimum value like
1950 mobility I actually 12
That's great ok so we have our particles for enemies how many go ahead and
Make sure I apply the prefab remember guys have run out of being a prefab inside the route by clicking
Arrow
You can see all of the bald
Are things that we've changed about the prefab
That's why you got to override apply all
And now
The anime explosion
That's great
How many go ahead in double click on my enemy prefab I made a paste in that particle effect
Hotel near we go
And we'll see her play
Looks great I'm going to put it up above
About the centre here
So that it doesn't appear in the ground
Mercedes
And I'm gonna go into my enemy script
And some of you have priority guessed what we're going to do
Ok go to reference this year
Anglesey break I'm going to create a serialised field
For a private particle system
Record this
Exactly what the name is particle anime explosion
Lowercase
Because of the variable
Now I got to do
Is once we die
See hear
Erika
So once helped is lower than 0 I'm just going to go ahead and say particle and my explosion that set active
Too true
Now
Why am I getting a red zig zag
What because were using setactive
On a particle system
Which a particle system is not a game object is a component
So we do make sure you access the game object
From that country
Particle anime explosion that gameobject set active to true
Please go back in the unity and make sure we setup
The reference something a drag particle enemy explosion
Try here
Save that prefab
Play and see if it works
It does not it will not work and I'll show you Wi-Fi punch this enemy
For some reason the particles did not appear
Why is that
Well
We're going to enemy
When we destroy this enemy what happened
Delete the anime
Meaning all of the objects inside of it as well get deleted
Even though we activate the particles
It doesn't matter if they get destroyed immediately
So how do we solve this
Taxi really really simple and I love unity for creating this functionality
What we do is we say
Particle anime explosion transform parent = no
What that means
Is that the particles here
Will be
Bratz all the way
Out of their parent other way to the root of the level
Like that now we can do here because
It doesn't want to restructure the prefab
Run time it's going to pop
Right next to the player in the camera
And it's not going to have a parent meaning if we destroy enemy
It's an asteroid the particles
That's the first thing
Now let me get play here and show you what's going to happen
Close the particles Ray
Well even though the particles disappear it just keeps going right
It keeps and also another problem here is there permanently here
Right which is Cannock or honestly so what we can do is go into our particle
Explosion
And I'm a big fan
Letting the player see the world become chaotic
I'm gonna make the duration like 300 seconds ok
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Meaning of make a lifetime 300 as well
Animals are going to turn off this looping
So that after 300 seconds
It doesn't just loop right
I meant to say that
Animal helpline
Awesome little beautiful that is
To get all these particles that blasted across the scene it's really cool
A little bit better one thing we can do is
Going to our particle explosion here
And we can set the rotation to be random to the start rotation can be random between two constants
202 360 360 degrees in a full rotation
So we're going to get full random rotation
For these particles
And also I'm gonna do you guys it's got in my collision here and I'm just going to set my radiator size
To be a little bit smaller so probably point
3
Zenimax CS play
So when I
What's this guy open
You can see that they sort of Leigh into the ground a little bit now because I'm me that radius a little bit smaller
So the collision size is a little bit smaller than the actual particles
Now
Want these particles get a little bit slow if I have in a 40 enemies
Exploding so if this was 300 seconds or it was 60 seconds or whatever
Really want the particle system to be destroyed after it's done playing and the duration has
Complete it
You don't want tons of particle systems just hanging out doing nothing
So the way we saw this is we just say
Right in front of Destroy gameobject we're going to say
Destroy
Particle anime explosion that game object
Now the problem here is that this is going to destroy the game on vibrate for the particles and when I going to see you
It's going to happen immediately so you do if you put a comma here
And then you just say
You can come here and this second parameter
Actually allows us to delay the destruction so we can do later by others however long we want
It's a particle
I got a 5 seconds I can say 10
10 seconds I could say 600 seconds
But what I'm going to do is particle anime explosion
And that are particle system component
Dark Mane
Dart duration
And all that's going to do is going to wait
300 seconds
Before destroying this particle anime explosion I can set it to 3 if I wanted to just to show you guys tell this works
So let's go to play
I'm going to make sure that my
Particle anime explosion
There we go
This one right here is selected in animal
Kill this guy
So there's no particle anime explosion
You no longer have a parent right
He's going to wait 3 seconds
And then destroy
America
Why he wasn't destroying so he destroyed after the duration
You know we can definitely go into a particle and an explosion
We could make this 900 seconds if we wanted to totally do that
And the reason you might want to do that is if you have a tonne of enemies
Turn the volume is here
And you just want to see a ton of
Destruction
And sort of
Paint your world with the brie
That might be really fun and honest you got the kind of recommend this because
These days people live streaming games one of the best things you can do for a streaming game
Or making your game stream streamable is allow for some creativity while there's no
More better creativity than just plastic and enemies B all over parts of the level like now I feel like I mean
Changes to this world
I have influence over this world right
Perform
Alright
Very cool
Next bus to Irvine to some particle effects for collecting gems and hearts
So it's going to be very similar guys very very similar
To what we did with the enemies here
I'm going to select my
Coin here
And you guessed it I'm just going to drag
This particle enemy explosion into my coin
There we go
What's 0 at the position and listen I don't want it to be so
Decorate again become big bellies
What I want to do is make it pretty small right so something like
Start speed of 1 and then a Max of 5
Like that
And I think a gravity modifier sort of like it sounds like dust of 0.3 might work
That's great
A messy hair
We can do for sova lifetime
And have a random Force so we can do -1 one negative 1111
And it's going to create some kind of force
Wind is blowing the particles
Let's go ahead and set the gravity modifier PT 1
My dad
And I will also be a direction of probably
3 seconds is fine
That
And honestly that speed is still a little big
Baby change the force of a lifetime that make the speed not look so crazy
So negative 323983 2 3 and 3
Did you even more aggressive - 10 to 10 - 10 to 10
Any of 10 to 10
We don't need to worry about the values I can actually said it is 0
Califon
I said it to wait
See how are we using these
Particle graphics now
Alright so the lifetime is a little long till it set it to 1
That's what I call
And then we're going to have it fade out right I was going to colour
A lifetime
Remove that so that we have to smooth
Colour decrease
That's really cool
So I'm going to disable this
Then we can go to our Queen
And we need a create a very some more script your enemy script when collecting particles
So we need a base with you the same thing we did in her enemy script for collectible rights we can just literally copy and paste
This sort of particle script here
So we can paste it see you
Here I think that's fine for now we might need it and headers later
I'm going to say that and we're back in my my script and I was going to copy and paste
This
Into my collectible script
And see her
Alright so we have all these if statements right if you collected health and do something if you like them then do something so
Conditions really have anything to do with the particle system
I'm literally just going to put it
Tribal order collection sound
Particle anime explosion
That transformed apparent equals no
Set the back of the true and then destroy me after a certain amount of time well we don't want to be called particle anime
Change this to a different name the prefab
What is going to be called particle
Collectible
Spark
Well I think
Glitters probably a better word and I'm going to go ahead and drag this into my prefabs
It's going to be
I think
Probably an original prefab
America
I'm fine with that
So there is our Park collectible l and Anna copy that name
And then we're going to make sure that I
Pasty here and then do the correct syntax for variable so no spaces lowercase p
An external copy that
For all of these
IKEA
You're so want to make sure that
For certain collectibles you know we might not have
A glitter particle that's required just want to double check that there's even one
Available to us to say if
Particle collectible Glitter
If there exists a this is the same as saying does not equal no
Can you remove that completely
And then I need to create
My brackets
Helen Close adel
There we go
So again all those doing guys at saying luck if there is a particle collectible glitter that's a sign
In my collectible
Inspector then
Parent to nothing so that
If I destroy the collectible destroys
Well
The particles collectible glitter game on Jack doesn't destroy
And then it's going to set it active to true and then it's going to destroy it after
The light of time
That is available in the particle systems
Direction
Alright
Let's make sure we assign this
Say that
And what's a double check that are coins do what they supposed to do
There we go
That feels good I like liking nose
So we can make those much smaller obviously let's go ahead and click on them
Particles collectible is double click on that and
Where can I set the size 2 pretty small
O2 2.0
7 really small is it play and see if we can get a nice glittery look
There we go fun
Sheffield Grey
In the same should be true with the hearts guys so we do the same for our health so we're gonna go to your help here
And
Really go to are particles collectible Glitter
And are we going to do is just
Drag that into the particles collectible field
Because again guys seem scripture is collectables the same whether it's a hard or whether it's a coin
It's got a lot of the same functionality
Save that
And then let's do the same for the key
Just drag Reading
NN
Kelly
Where the particles are
In offaly
Does particle effects
Will a car no matter what I'm grabbing whether it's gems or hearts that's great
Very good
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.