This is great but my issue is that my player just walks into the trigger and it moves away, im guessing it needs to be translucent so that I can actually walk into it
No Joke! I searched like 2 Hours and watched like 20 other Videos and then your with the simple 4 mins just killed it! xD THX so much I feel kinda stupid now but THX 4 REAL!
Brother, when I keep searching about something I want to my game , I find your helpful tutorial in front of my face haha, Thanks a lot dude , you are the Best , you made the program so easy .
i used triggers in all of my holes so if you fall into a hole it just loads the same scene :P ill use this for my finish trigger to go to the next level. thanks!
thanks this works great but how do I use it on the next screen? when I try to do it it won't let me use the script with a different load scene number with out changing the first one?
Thank you So Much :D I Started Making Games With Unity In 2019 And I'm Getting Better And Better At Unity Because Of These Videos Thank You :) I'm Trying To Make Games To Sell On My Website
Thanks for your tutorials!!! For anybody who has to use loads of different scenes in one project/ going back smd forth between differeny scenes (and who is a noob in coding) I duplicated the script then changed the name of the script and of course also the reference right in the beginning of the code of course :) that avoided compiler errors for me! I am sure there is also a way by elaborating the code a little bit but I didn’t have the time to look up how ;)
Is it fair to say it is quite a bit more complex if I am trying to bring data from scene to scene? Such as life bar, inventory....thanks as always for your vids they are fantastic
Can you make a tutorial on how to make a Timed scene where when the player enters a trigger a timer will start and when the timer reaches 0 it will change scene? Or does anyone know in this comment section? If so send me a youtube link, or reply to this comment with the script pls
Great Tutorial! Just if any of u guys are wondering, If u created your own physics system with unity this won't work unless you attatch a rigidbody to the area you want to trigger, and select the Kinematic body type :)
hello! I just dont get it.. Which Object is your Player? I can load a new Scene like you, but my player will not get into it. It's actual a gameobject of the first scene, i am pretty sure it will just get destroyed with it. How do i have to define it correctly? As a prefab? Do I need an empty gameobject as placeholder in every single scene or just a simple instance of my player in every single scene?? I just started using unity..
Hi, after setting all of these you share, I can successfully switch scene but my character cannot move in the second scene. Do you have any suggestion to fix this?
ok now how do i go back to the previous scene and start at the same position i left the previous scene? it was something with dont destroy onload but i cant quite figure it out. verry nice tutorial!
Is it possible to use an empty game object with a collider and put in the script a public Scene scene; so you can put the same script on any game object and have it load a different scene depending on the specific scene put in the public variable. That way one script to put on multiple objects to manage multiple scenes, rather than a different script for each object and each scene?
Does anyone know how to do this but also spawn the player in a specific location of the map? Would it just be to have an empty object and essentially teleport the player to that empties position before they enter the next scene?
Its not working for me, literally I did exactly the same thing you did, everything build settings, script, cube, box collider on trigger, EVERYTHING. It just simply doesn't work, I move through the cube and nothing happens. pls respond my project is due on Friday ;(
How do you make another object hit the trigger and switch levels, for example a ball that rolled in to it. What would be the code to switch scenes then?
when i try to add the script onto the gameobject it says “Can’t add script component ‘SceneSwitch’ because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.” Can anyone help???
I have it set up so when i go to a door you need to do a lockpick "mini game" to unlock the door, this works fine getting to the second scene but when i go back to the main game scene it restarts the progress made. Any ideas on how to fix
There's nothing "in-depth" to go into, it's literally that line of code in a coroutine. if that doesn't make sense, there's tons of tutorials on my channel covering waits and coroutines
I think you're honestly the best RUclipsr to do tutorials on unity. Thanks for the content, sir!
i must agree with this man you are the best
dani is better
@@friesneverdies those arent even tutorials... I was joking
Brakeys and jimmy vegas are good to
This is great
but my issue is that my player just walks into the trigger and it moves away, im guessing it needs to be translucent so that I can actually walk into it
THANKS REALLY THANKS I THINK I WASTE 50 YEARS LOOKING FOR A TUTORIAL FOR THIS YOU SAVED MY LIFE
came here to see how to switch between scenes in unity and got exactly that.
no more, no less.
deserves a thumbs up.
My problem was solved within the first minute and a half - how to add scenes to the Build Setting. Thank you so much.
Sir you are really hardworker
I, like many others here, appreciate your explanations! Compared to many other tutorials I've tried to follow, your coding actually works! THANK YOU!
No Joke! I searched like 2 Hours and watched like 20 other Videos and then your with the simple 4 mins just killed it! xD THX so much I feel kinda stupid now but THX 4 REAL!
thank you so much! i've searched for minutes and minutes to try making a script like this, but it didn't work, anyways thanks!
So much better than other tutorials! You explained everything so clearly. Thank you
thank you bro
even 2 years after upload....it still helped me
you earned a sub + a like
Thank you for the quick tutorials. Fantastic work! This is exactly what one needs when just starting to use Unity.
Brother, when I keep searching about something I want to my game , I find your helpful tutorial in front of my face haha, Thanks a lot dude , you are the Best , you made the program so easy .
Thanks! I've been struggling with this for a week now!
This tutorial was great! Every other tutorial I tried to follow ended up being far too confusing for such a simple concept.
Thank you soo much i have been spending days on finding a video that works thank you
:)
Thanks for the quick tutorial, helped a bunch!
Thanks so much
I was about to give up on my game because of this
Love the tutorial, everything works great, thanks man.
Thank you it really worked keep adding videos of unity
i was looking for a while to find a tutorial, you have helped me greatly
This is the best tutorial I've seen
i used triggers in all of my holes so if you fall into a hole it just loads the same scene :P
ill use this for my finish trigger to go to the next level.
thanks!
thats a good idea
THANKS SO MUCH! I WAS LOOKING EVERYWHERE FOR THIS!!!
thanks this works great but how do I use it on the next screen? when I try to do it it won't let me use the script with a different load scene number with out changing the first one?
you can either use a new script or use an integer variable to change it
Thank you so much, your tutorials are so easy to follow.
Thanks Jimmy. Being new to Unity I was looking for something just like this. Great video.
Thank you So Much :D
I Started Making Games With Unity In 2019 And I'm Getting Better And Better At Unity Because Of These Videos Thank You :)
I'm Trying To Make Games To Sell On My Website
Let’s go! It’s short, simple, and works!
THX YA SO MUCH! I NEEDED IT, ITS WAS NECESSARY
Thank you so much ive searched this about 1-2 hours!
You Sir are a good Human Being. I was struggling a lot trying to create a Level Trigger.
definitely subscribing to you.
Your the only one that worked Thank you
Thanks for your tutorials!!! For anybody who has to use loads of different scenes in one project/ going back smd forth between differeny scenes (and who is a noob in coding) I duplicated the script then changed the name of the script and of course also the reference right in the beginning of the code of course :) that avoided compiler errors for me! I am sure there is also a way by elaborating the code a little bit but I didn’t have the time to look up how ;)
THANKS !
@Jarreth Oglesbee what exactly do you need to change in the code? I changed the number after LoadScene but I still get a error.
thanks Jimmy for makin these videos🏆
Bro this helped me out so much thank you
Thank you for this simple yet great tutorial!
Outstanding! Simple and to the point! Thank you for sharing!
Perfect, exactly what i was looking for, other yt tutors showed complicated ways involving expensive assets.
Thx master ✌️
Thanks this helps me with alot of stuff. Menu, next scene ect. Thanks
Is it fair to say it is quite a bit more complex if I am trying to bring data from scene to scene? Such as life bar, inventory....thanks as always for your vids they are fantastic
Thank You sir! this is very helpful and useful, you actually deserver more subscribers
Thank you so much! This is really helpful!
Thanks really straight forward and helped alot
Can you make a tutorial on how to make a Timed scene where when the player enters a trigger a timer will start and when the timer reaches 0 it will change scene? Or does anyone know in this comment section? If so send me a youtube link, or reply to this comment with the script pls
OMG!!!!!!!!!!!!!!!!!!!!!!!!!!!! it works!!!!!!!!!!!!!!!!! thanks bro, i have try to switch from long !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
yo
Thank you so much. Works fine!
hey sir! thanks a lot for this tutorial, it really save my life!
Thank you so much for the help.
TY
thank you so much this helped a ton!
Thankyou very much Jimmy
Great Tutorial! Just if any of u guys are wondering, If u created your own physics system with unity this won't work unless you attatch a rigidbody to the area you want to trigger, and select the Kinematic body type :)
u are the best i cant thank u more
this so easy than the rest of other tutorial
Thank you so much my game I finally coming to gather your the best yesssssd
Works in 2020! Thank you sooo much!
thankyou jimmy vegas sir so much thankyou that your video helps me a lot thankyou sir now i can make my hdrp fps game simply !thankyou sir!
Awesome, thanks so much!
But how would we change the script if we wanted to trigger the change by pressing a button?
THANKK BROOOOO!!!.. YOU SAVE MY LIFEE😂
hello! I just dont get it.. Which Object is your Player? I can load a new Scene like you, but my player will not get into it. It's actual a gameobject of the first scene, i am pretty sure it will just get destroyed with it. How do i have to define it correctly? As a prefab? Do I need an empty gameobject as placeholder in every single scene or just a simple instance of my player in every single scene?? I just started using unity..
you have to have another player in the other scene
thanks, i could make my level system for my game!
Is there a way to do this, but make the player load at a certain position in the newly loaded scene?
Thanks so much!
holy i cant beleive im back here
Thank you!
Dude, thank you so much!! You solved my error :D :D
When ever I switch scenes the lighting is pitch black, idk what to do.
it’s normal for that to happen in-engine. it doesn’t happen in a full build
@@JimmyVegasUnity thank you!
OMG Thank you so much❤️❤️❤️
THANK YOU SOOOOO MUCH
Hi, after setting all of these you share, I can successfully switch scene but my character cannot move in the second scene. Do you have any suggestion to fix this?
Thank U so much. like the only guy that gave me the info I needed!!! Sub for sure no doubt about it!!!
ok now how do i go back to the previous scene and start at the same position i left the previous scene? it was something with dont destroy onload but i cant quite figure it out.
verry nice tutorial!
Check out playerprefs and how to save player position, just turn the x y and z from a vector into floats. There are plenty of tutorials on youtube
Does anyone know if it works for multiple objects on the same scene. If so then could you explain how.
like a glove!
Is it possible to use an empty game object with a collider and put in the script a public Scene scene; so you can put the same script on any game object and have it load a different scene depending on the specific scene put in the public variable. That way one script to put on multiple objects to manage multiple scenes, rather than a different script for each object and each scene?
Thanks, Sir!
Can u help me?
How to make ontriggerEnter2D waits for another ontriggerEnter2D to change scenes in unity.
Hey Jimmy how can I make key prompt when I collide so when we press key it changes scene?
@@spidervini1975 Thanks I will try
The Warden if you want to press ex: ” E ”. You will have to use GetKeyDown.Keycode(E)
@@scrub2657 how to change scene with left click, please?
i dont have errors in my code or anything but if i walk into it my game just freezez a millie second but it doesnt load the scene?
Does anyone know how to do this but also spawn the player in a specific location of the map? Would it just be to have an empty object and essentially teleport the player to that empties position before they enter the next scene?
Thank u!
So, do I have to create a script let's say "SceneSwitch2" to go back to the previous screen?
Do the exact same but change the scene number
@@JimmyVegasUnity Ok, thanks for the reply!
@@JimmyVegasUnity I tried that but it won't do it, it gives me an error thing. please help!!!
Its not working for me, literally I did exactly the same thing you did, everything build settings, script, cube, box collider on trigger, EVERYTHING. It just simply doesn't work, I move through the cube and nothing happens. pls respond my project is due on Friday ;(
*bangs table on the desk 20 times* *bangs it again just to be sure that I know I am dumb*
Its "Collider" capital C
Hehe glad you got it sorted :)
@@Oki2122 HOly thank you I've been trying this for nights now and had the exact same issue except capitalize "On"
YES IT WOKS!!!!!!!!!!!!!!!!!! THANK YOU SO MUCH!!!!!
How do you make another object hit the trigger and switch levels, for example a ball that rolled in to it. What would be the code to switch scenes then?
you would use tags. I have a few videos on how tags work
@@JimmyVegasUnity tysm I didn’t think you would respond cuz this vid is from 2 years ago
You are a life saver!!
Amazing thank you!
i put the exact code in and did everything you said but all it does is it just teleports me when i move around
it says the name DIEDMENU does not exist in the current context
pls reply i need help
paste entire script here
when i try to add the script onto the gameobject it says “Can’t add script component ‘SceneSwitch’ because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.” Can anyone help???
same to me, did you fix it?
Victor Royett no, i still have no idea what to do.
@@caden5936 What about now? This happens to me, too. Did you solve it?
MONOTONY AND BOREDOM nope 😢
Hey ! Make sur that line is correct : public class SceneSwitch : MonoBehaviour
I have it set up so when i go to a door you need to do a lockpick "mini game" to unlock the door, this works fine getting to the second scene but when i go back to the main game scene it restarts the progress made. Any ideas on how to fix
Will it work on 2019.1
It will work in every version of Unity
thank you so much!!!!
how to comeback to first scene at the same point where the plaYer entre the second scene instead of original position?
please help i did as the tutorial says yet i go through my trigger instead of it actually taking me to the next scene
nevermind im dumb and forgot to save
when you get teleported to the next scene how do you make the player teleport to a specific gameobject?
how do i delay the scene switch?
yield return new WaitForSeconds(); inside a coroutine
@@JimmyVegasUnity can you make a tutorial going in depth with this
There's nothing "in-depth" to go into, it's literally that line of code in a coroutine. if that doesn't make sense, there's tons of tutorials on my channel covering waits and coroutines
@@JimmyVegasUnity ok
thankk you good tutorial
when I use the scene manager, my scene is always black, as if the camera is being rendered twice, what can I do?
if you add a scene to the build will all changes you make after go in? this might be a stupid question, but I am completely new to all of this lol.