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
So I checked that on the mobile, and I got 60 frames per second, very easy.
Didn't really drop below 50 at any point in time.
So hopefully you've got a really good frame rates as well on your mobile device so that we know that
this works now.
It's always important just to check it at stages as you're working through this, just to ensure that
it's not falling too low on your mobile device.
Don't leave it right till the end of the project to actually test it on the mobile device.
OK.
You can also have a remote set up so you can use an emulator effectively to emulate a mobile device.
It's not as effective as actually testing it on the device itself because it's still technically running
on PC.
So it's relying on the PC architecture to run.
You can get misleading information on your mobile device.
It's always better to actually export an EPC and then actually install it on your mobile device to see
it as it's going to effectively run as an end product.
OK.
So what we're going to do now, we're going to actually put in the arms the player arms.
OK, so I'm just going to switch off my gizmo for the moment and then find the low poly FPS pack and
the components.
And then we should have some measures and the arms.
OK, and I'm going to be using the hand gun.
Zero one.
And I'm just going to drag these into the hierarchy.
OK.
Now, I want them to be roughly in the same position as the main camera.
So I'm just going to drag my arms and zero one onto the parent.
OK, and where I have my main camera currently position at zero zero zero.
So I want my arms to also be positioned at zero zero zero to begin with.
All right, so they're in the same position as the camera now.
And now it's just a case of actually moving around the arms until they match up in the viewport.
OK, so I'm just going to kind of move down on the wire a little bit and just move it over just a little
bit, and then might actually just push it forward on the see just a little bit.
All right.
I think that looks relatively good.
Now just make sure that the arms are actually attached to the main camera, not to the parent.
So now that they're lined up perfectly, just going to click and drag on to the main camera.
This means that wherever the main camera goes, the arms will then follow.
Now, at the moment, it has an animator, but no animator controller.
OK.
So if I go to window animation and animator, this will open this window.
And currently, there's nothing in there.
OK, so we need to create something that allows us then to use any of these animations that you can
see here.
OK, so I'll do so inside of this folder.
I'm going to right click, Choose, Create and an animator controller, and I'll call this arms, which
is fine.
Then on as soon as you do that, by the way, you get these little blocks that show up and you're on
the Matur window, because now you've got an actual controller just going to click on the arms and on
zero one, drag this into the controller so that now it's bound or it's binding the other to the arms.
It's going to be controlling those.
So the first animation I want from the list is going to be the idol.
So let me find.
I've got Idol at and gone.
Now, if you want to check that out and see what it looks like, just click on it.
Then you can press play.
This is currently what it looks like.
It's just this Idol animation.
It is set to loop, which is important.
And so I'm just going to click and drag that into here.
Now, that's the animation that will play.
So if you go over to my simulator now, the UN should actually start to animate.
There we go.
Now we've got the Idol animation actually play OK now in terms of the materials and those kind of things,
and we'll change those later.
It doesn't look too effective at the moment.
But over in the animator, every now and then we're going to want to shoot.
All right.
So let's find our shoot animation.
So.
I think it's going to be this
fire and gun, let's take a look.
OK, that's when it comes back.
Let's see, five polls.
Oh, nothing.
So fire and gun.
Yeah, I quite like this one, I think this fire and make sure this one is not looped, which it isn't
to begin with.
You only want this to play once.
OK, so I'm going to drag it up into this window.
Notice that this one is great and the other one is orange.
Orange basically means that is the default animation will play over and over again.
A gray block means that it's a secondary animation needs to be called using a transition.
So if I right click on the hand gun and choose make transition, that will allow me to connect the two
animations together.
I'll click on this line shows and the transitions between these.
At the moment, there are no conditions.
So it will go directly from this animation to that animation.
If I show you what this looks like, in fact, let me just right click make transition going back to
idle so that we have this constant loop.
If I show you what this looks like at the moment, OK, he's going to play an Idol animation and then
he's going to shoot.
OK, wait for that.
There we go.
And we got to shoot them back to Idol again.
Well, what we want is only for the shoot to actually up and when we press a button on screen.
OK, so to do that, we're going to go over to our parameters and we're going to choose one of our parameters
using the plus button.
And the one that we want is actually a trigger trigger.
We'll just simply play the animation once in return.
So I'm going to call this fire.
Now, what I can do and on this transition, going this way down to the fire, oh, my conditions,
I can click plus and just call that a trigger.
OK.
Make sure it doesn't have exit time.
If it does exit time, you have to play the entire idle animation before play in the fire.
If it doesn't have exit, time immediately goes from idle to fire.
OK, now the transition going back should have no conditions and it should have exit time.
That means it has to play the entire fire on the motion and then it goes back to idle.
OK, so if I play through the simulator now, you will notice that it will only play idle animation.
You will never see it fire because that trigger never gets set.
OK, great.
So that's what we want and now we might also need to reload.
I'm going as well.
And so let me find on the animation.
I think it's reload out of ammo.
Yeah.
So and we've got this.
So let's drag this one up and I'm going to put this maybe in this position.
In fact, we'll probably only ever call it from the idle, never from the firing.
So I'll put it up here, which is fine.
Once again, going to right click make transition to the reload.
Right click.
Make transition back.
OK.
But once again, this is just going to play now no matter what, because it doesn't have any conditions.
So let's once again to another trigger.
Let's call this reload.
So on the transition going from idle to reload, let's make sure it does a condition of reload.
Just called up and it doesn't have exit time, and then the transition back plays the entire animation
because of the exit times.
There's no conditions.
It goes immediately back to idle or excellent.
So now we've set up our animations for our arms.
Now, at the moment, the arms look pretty weird because the material.
So if we just check the material and believe it's on arms, it's using the standard shader.
And that's why it looks kind of crazy.
So what they want to do is go over to Mobile and choose on that, OK?
And then instantly it kind of matches this scene a lot better.
Now, you don't get those nice kind of.
I'll just show you if we go back to standard.
You can see all all the kind of like variations of light on the arms.
Well, if we choose mobile one, you kind of lose a lot of that.
But I kind of like this cartoony style.
If you still want to see that that light, bump it off that I think the fuse will give you slightly
better.
But once again, it's very dark.
Not simply because our directional light is switched off.
If I were to put on to mix something real time.
No.
OK, doesn't want to do that.
It's just really dark, basically.
So I'm going to change it up to Omlet.
I'd much prefer that we've also got the gun as well, by the way, which also has its own material on
that standard.
Let's go to Mobile and Omlet.
OK, that we got.
That's much better.
And I also believe that we've got.
Oh, no, they're fine.
They're sharing the same material.
We've also got a knife as well.
All right, so take a look at the knife.
It's probably never going to use the knife.
So what we can do here is actually get rid of this.
So whenever you've got an item that's blue basically means it's a prefab and it's attached to this original
object here.
So if I right click on it, choose prefab and unpack completely how it gets rid of that blue.
And it's no longer attached to this now.
Now only exists in this particular scene.
So I can actually modify this without changing the original.
So I can click on the knife.
Just press delete to get rid of that.
We don't need it.
OK.
Now, if I move over to shaded wireframe, what we're going to see is that most of our objects are really,
really low poly except for our arms.
OK.
And particularly that good as well.
If you take a look at the gun, it's got loads and loads of polygons on there, and we just don't need
it to be that high detailed.
So what they've done is reduce the amount of polygons for this model.
You can do that yourself in Blendr for any any models you want.
And I've got that video on YouTube that shows you how to do that.
And so if we go to mobile game resources, low poly arms actually reduce the polygons.
So if I go to a handgun where we can see our mesh and can zero one, we're going to replace this with
zero three and zero one.
Instantly it's reduced in terms of polygons.
OK.
We also have the angle zero one I insight's, which is this one like this or the mesh in there.
It simplifies it and the arms as well.
So you can see the mesh for the arms.
Let's drag this in here.
And it's Avale simplified.
OK.
Now, it's not taking up as much space in memory.
And in terms of actually drawing, it is so much easier because there are there are fewer vertices,
which also means that it's easier to animate.
And so if you take a look, if there was simulator, pretty much no change whatsoever.
All it still looks exactly the same.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.