Unity 2D SCENE MANAGEMENT Tutorial

preview_player
Показать описание
In this Unity 2D tutorial we'll talk about Scene Manager system.
When the player reaches the Finish Point the Next Level will be Load.
How to switch between multiple scenes in Unity ?
We'll write simple Scene Controller c# script to load a scene in unity.

Enjoy the video ☕

————————————————————————————
🖐 Hi Game developer
Welcome to Rehope Games I'm Murat

I share unity tutorial videos on my channel. if you want to make a game with unity (especially 2d platformer game), the videos here will definitely interest you.

————————————————————————————

#unitytutorials, #unity2d, #unity2dplatformer
Рекомендации по теме
Комментарии
Автор

"I can't play own game", BTW, I'm a beginer to unity and really appreciate your video, it helps me alot from fundamental understanding, Although I've just watched some of your videos but it helps me solve alot of my problem. Thank you!!!

thinhnguyenquoc
Автор

bro you got me each time you say script

samoldfield
Автор

Merhabalar, çok yardımcı oluyorsunuz gerçekten. Diğer videoları da sabırsızlıkla bekliyorum. Bir an önce gelirse çok güzel olur 😁

Centaury
Автор

lol I just found this guy here is so helpful your getting a sub and when ever I need help am going to watch your videos

codywilliamson
Автор

First Like!!!👌 amazing tutorial! Just keep going!

biged
Автор

Nice video as always 🙌🏼 Maybe you also could explore strategies for how to load the player in the left or right side in next videos

FernandoPosserPinheiro
Автор

Guys if you are having same problem as me where you can only start at level 1 or else finish point for other levels dont work then u will have to copy paste game manager to all other scenes manually.

knowledgeseeker
Автор

awesome. thank you so much. subscribed

smbiplob
Автор

script for scene controller:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class SceneController : MonoBehaviour
{

public static SceneController instance;

private void Awake()
{
if (instance == null)
{
instance = this;

}
else
{
Destroy(gameObject);
}
}

public void NextLevel()
{
+ 1);
}

public void LoadScene(string sceneName)
{


}
}




script for finish:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FinishPoint : MonoBehaviour
{

private void OnTriggerEnter2D(Collider2D collision)

{ if
{
// go to next level

}
}
}

kxmyona
Автор

I'm developing a 2D rocket shooting game with a stage progression system. The idea is to progress to the next stage after either a set amount of time has passed or after defeating a certain number of enemies. The difficulty will increase with each stage, but players will still encounter level 1 enemies even as they advance to level 2 and beyond. The gameplay should feel continuous, allowing for ongoing action while gradually increasing the challenge.

zoterodisuke
Автор

Works as described, thanks :D, like the way you teach direct to the point, I almost forget to ask, do you know how could I keep my character stats when transitioning scenes? Like in Blasphemous that you transition but keep your health and magic, etc.

Satenc
Автор

Hi! Could you make a tutorial on how to make a unity game like Mamoball? he is very beginner in c# and i can script for walking and other basic stuff but i am having trouble with some things.

fillowskyy
Автор

How about 3D game for 1st person characther between schene??

Drmelv
Автор

I wonder if this system can be used for secret rooms or something, like how Mario has secret rooms that take you back to the level after being cleared?

thebigguy
Автор

How can i make my character move from one scene to the other and go back to the previous scene from the right, just like in hollow knight when he go back the previous room?

noobdev
Автор

Hi Friend I often follow your simple and clear videos for a beginner like me, but now I'm having trouble with this video, I followed all the steps checking and double checking, but I always get the same error message:
NullReferenceException: Object reference not set to an instance of an object
collision) (atAssets/EndLevel.cs:10)
can you please help me figure out where i'm wrong, thanks and keep it up.

puriceful
Автор

I'm getting the cs1061 error for my codes

LoneWLF_
Автор

need help i want to add condition like if player has collected the key and reached the finish line then the next level will be loaded and if not a message will pop up the collect the key

abhinavkhatana
Автор

it worked before but now im getting the "NullReferenceException: Object reference not set to an instance of an object" error do you perhaps know why?

CAM-IS-NOT-REC
Автор

bruh... I've spent 3-4 hours wondering why it doesn't work, only to find out that I used the wrong Collider

Narezano-wsst
join shbcf.ru