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
Now, as the game gets more challenging as it goes on, and particularly above level 10, you're going
to find that it gets really, really challenging and it's very difficult to survive.
So we want a system whereby people can actually survive if they know what to do.
And we're going to introduce a pumpkin into the scene that's spawns into the scene.
If you shoot this pumpkin.
You will then replenish your health.
So it's kind of like a hidden bonus that's in the sea.
So the first thing that we need to do is find a pumpkin on Prefill prefab mobile.
And I quite like this one.
All right.
Looks pretty cool.
So in the scene, I'm actually going to put this pumpkin maybe just in front of this tomb here.
We face in the camera.
See what that looks like for the simulator.
You can barely see it, actually.
Just so it stands out a little bit more, going to scale up this pumpkin a little bit.
Double check, yeah, sat on the floor in the simulator, you could definitely see the pumpkin there
and and I want to make sure that this is static.
It doesn't have an animation, so remove that and is static so that it will get botched.
And we can also add that to our ground as well as it gets added with everything else.
So it appears right there at the bottom.
And now we do need to add a box collider around it.
So box collider.
Yeah.
Looks good to make sure that that is a trigger.
It's not a physical box collider.
And then we need to give it a new tag.
So add a tag.
Let's put a new one in.
Let's call this pumpkin.
Just click on that pumpkin.
Give it the tug.
OK, there we go.
And and so now in our script, we can say that if we do actually shoot the pumpkin, health is going
to go all the way back up to back up to full.
So that's going to be in a shoot function where we've got if it transform compared to zombie, ghost
bat, etc. We're going to say if it's not front or dot.
Crumpet.
Make sure it spelled exactly the same as what you've spelled it, pumpkin.
And we're going to take our health.
And spelt it wrong, Alspaugh, don't fill them out.
And we're going to make that equal one, which is the full amount.
So we're going to replenish the health and then we're simply going to destroy the hit.
So hit game objet not not necessarily destroy, actually, it don't transform the game objects and dumps
an active.
So switch it off and then make that false.
No, we use an appalling system.
So instead of destroying and spawning in objects, we're just switching them on or off.
OK, great.
So that's when we shoot the pumpkin.
Now we don't want the pumpkin to be on right at the beginning level, only switches on after a certain
amount of time.
So what we've got switching on enemies is that the new SLUTZ probably contain game object will simply
call this pumpkin object.
And then down in the switching, animes on enumerator at the bottom, he would go lower, the enemies
were simply going to add a new porc, another three seconds control and see controlled movie.
And then we're going to see a pumpkin object so seductive to trick.
And let's save that.
All right, there we go.
And so now we're going to test this out, just make sure that it does work.
So on our ground, we should have a new slot somewhere, and that's a pumpkin object.
That's correct.
That mobile pumpkin into the make sure that the mobile pumpkin is actually switched off to begin with.
And let's just press play.
So will align myself up with the pumpkin to begin with, maybe like the zombies attacked me.
OK, notice that my health went right back up to what?
Excellent.
Yeah, and then the pumpkin is switched off again to begin with, and then it will switch on a certain
time.
So it's just just the way that you can actually survive for longer if you know what to do.
And I'm not necessarily going to tell the players something that you can kind of figure out.
It's almost like a hidden Easter egg.
And that kind of makes it a bit more fun.
Also want to make sure that I'm changing my enemy damage amount back to what it originally was.
So make this public again.
And the damage amounts to zero point zero five.
OK.
Excellent.
So we pretty much got a working game there.
And what we're going to do in the next video is just check out the performance.
So we're going to go back to our profile to see how it's doing.
And then just do a few final tweaks on that before we actually exporting it for both Android and iOS
as well.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.