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
How did you get on with that task?
So if you did actually manage to fix it and you got it working, that's great.
That shows that you're actually really, really good with scripts, OK, and thinking outside of the
box as well.
If not, I'm going to show you how to fix that in this video.
So at the moment, in our main camera, what we're doing, where we're moving both X and Y at the same
time.
So we're passing different values into that, which basically means that that's the reason why it's
rotating at any moment in time.
Those two can be conflicting with each other.
Well, what we want to do, we only want to move a main camera on one axis and we want a parent object.
It's also going to move the camera to be moving on a different axis.
That means that the two different axes don't work against each other.
All right.
One of them only goes in one direction.
The other only goes in the other direction.
So on that main camera, going to right click, we're going to choose create empty.
It's just going to create just a transform.
That's all.
I'm going to call this parent and click and drag this right up to the top to separate it from the main
camera and then click and drag in the main camera onto parent to parent to to make this object.
OK, I'm going to go back to my script.
I'm going to create a game object for that.
So public game object slots, OK, for parents camp.
She's going to save this when the very new slow, I try to ensure that I get them filled before I go
on with the next step.
There we go.
An empty game object.
So let's just drag parent into that.
Do have a tendency to forget.
And then when I start playing, there's all sorts of errors in them, like, oh, I forgot to put that
in that slot, of course.
OK, so now what we need to do, we need to basically copy this line.
So let's just highlight it control and see to copy.
Or you can do edit and copy.
And then good press and return and control them.
V2 paste going to change this to parent lowercase P.
Parent camp.
OK.
And the actual parent cam itself.
We only want that to move on the y axis, not on the X axis.
So our X axis, which is the first one, is going to be zero zero.
So now it's only moving on that one.
And our camera is only going to move on.
The X axis is zero axis, which is this one in the middle is going to once again be zero.
So we've separated out the two items.
So let's now save this.
And give it a test.
Now, when the press play.
They will go and try and move in both axes at the same time.
Notice it keeps it perfectly right.
It's not it's not given those like that weird rotation we have before.
Excellent.
All right, so that's fixed, as I say, if you manage to do that yourself.
That's really great.
All right.
You're making great progress.
Well, it's a relatively easy fix.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.