Тёмный

Unity 2D SCENE MANAGEMENT Tutorial 

Rehope Games
Подписаться 10 тыс.
Просмотров 25 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@knowledgeseeker8735
@knowledgeseeker8735 5 месяцев назад
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.
@Centaury1
@Centaury1 Год назад
Merhabalar, çok yardımcı oluyorsunuz gerçekten. Diğer videoları da sabırsızlıkla bekliyorum. Bir an önce gelirse çok güzel olur 😁
@RehopeGames
@RehopeGames Год назад
Merhaba, güzel yorumunuz için çok teşekkür ederim 🙏 Bunları duymak gerçekten motive edici ve benim için kıymetli 😊
@fillowskyy
@fillowskyy Год назад
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.
@RehopeGames
@RehopeGames Год назад
I'm thinking of making different 2d games (action , adventure .. etc.) , maybe like mamoball. The important thing is that you learn logic. After learning the logic, you can make any game you want. if you have enough patience and passion you can make your dreams come true. Thank you for your interest 😊
@fillowskyy
@fillowskyy Год назад
@@RehopeGames thanks for the answer! I don't know much so far, but I'm motivated to learn to create the game of my dreams. I got the basics, but that's just the beginning 😅
@codywilliamson1323
@codywilliamson1323 4 месяца назад
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
@LoneWLF_876
@LoneWLF_876 4 месяца назад
I'm getting the cs1061 error for my codes
@georgethenoobguy7734
@georgethenoobguy7734 3 месяца назад
it didnt work
@Drmelv0131
@Drmelv0131 7 месяцев назад
How about 3D game for 1st person characther between schene??
@Satenc0
@Satenc0 7 месяцев назад
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.
@FernandoPosserPinheiro
@FernandoPosserPinheiro Год назад
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
@RehopeGames
@RehopeGames Год назад
Thank you so much 😊
@puriceful
@puriceful Год назад
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 EndLevel.OnTriggerEnter2D(UnityEngine.Collider2D collision) (atAssets/EndLevel.cs:10) can you please help me figure out where i'm wrong, thanks and keep it up.
@RehopeGames
@RehopeGames Год назад
Hi , thank you for your interest 😊 Can you show me EndLevel script.
@puriceful
@puriceful Год назад
@@RehopeGames thanks for the prompt reply, this is the script using UnityEngine; public class EndLevel : MonoBehaviour { private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { // go to next level SceneController.instance.NextLevel(); } } }
@RehopeGames
@RehopeGames Год назад
did you create SceneController script ?
@puriceful
@puriceful Год назад
@@RehopeGames yes
@alezpso
@alezpso 3 месяца назад
have you added "GameManager" to your scene?
@smbiplob9476
@smbiplob9476 8 месяцев назад
awesome. thank you so much. subscribed
@RehopeGames
@RehopeGames 8 месяцев назад
Thanks and welcome 😊
@eli___7152
@eli___7152 7 месяцев назад
My character does not appear when I change scene. Can someone help me?
@VarunAiyar
@VarunAiyar 2 месяца назад
Thank you brother
@thebigguy270
@thebigguy270 10 месяцев назад
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?
@RehopeGames
@RehopeGames 10 месяцев назад
You can create a new scene for the secret room. Or, you can create it in a different position within the same scene. When the player enters the secret room, you can change the player's position. Honestly, I prefer to create the secret room within the same scene. Or, you can also load a different scene within a scene. I wish you success in your project 😊
@GEMAGEMA-xr3rp
@GEMAGEMA-xr3rp Год назад
Thank you for a great video
@RehopeGames
@RehopeGames Год назад
thank you for your nice feedback 🙏
@abhinavkhatana
@abhinavkhatana 11 месяцев назад
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
@RehopeGames
@RehopeGames 10 месяцев назад
Hello, this code will give you an idea. using UnityEngine; using UnityEngine.SceneManagement; public class FinishTrigger : MonoBehaviour { private bool keyCollected = false; void OnTriggerEnter2D(Collider other) { if (other.gameObject.CompareTag("Player")) { keyCollected = true; gameObject.SetActive(false); } } void OnTriggerEnter2D(Collider other) { if (other.gameObject.CompareTag("Player") && KeyPickup.keyCollected) { KeyPickup.keyCollected = false; SceneManager.LoadScene("NextLevelName"); } } }
@abhinavkhatana
@abhinavkhatana 10 месяцев назад
@@RehopeGames thank you
@noobdev6464
@noobdev6464 10 месяцев назад
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?
@RehopeGames
@RehopeGames 10 месяцев назад
I understood you question. Actually this is a detailed topic. Maybe i can prepare a video about this topic.
@noobdev6464
@noobdev6464 10 месяцев назад
@@RehopeGames that would be awesome
@noobdev6464
@noobdev6464 10 месяцев назад
@@RehopeGames there is not much information about it, same thing for depth of field in 2d platformer witout bluring the assets in photoshop
@noobdev6464
@noobdev6464 10 месяцев назад
@@RehopeGames are u planning a video about it?
@CAM-IS-NOT-REC
@CAM-IS-NOT-REC Год назад
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?
@RehopeGames
@RehopeGames Год назад
Hello , did you follow me step by step ? I think you probably did not assign the levels to the levels array.
@CAM-IS-NOT-REC
@CAM-IS-NOT-REC Год назад
@@RehopeGames i dont know what you mean by levels array, can you specify?
@CAM-IS-NOT-REC
@CAM-IS-NOT-REC Год назад
@@RehopeGames "NullReferenceException: Object reference not set to an instance of an object Finish.OnTriggerEnter2D (UnityEngine.Collider2D collision) (at Assets/Scripts/Finish.cs:24)" thats the whole script. The script is called Finish for me but its the FinishPoint script that you made
@RehopeGames
@RehopeGames Год назад
Can you show me the line 24 of your Finish script
@CAM-IS-NOT-REC
@CAM-IS-NOT-REC Год назад
@@RehopeGames line 20: SceneController.instance.NextLevel(); line 24: SceneController.instance.LoadScene(levelName);
@azizbenothmen-iq7ku
@azizbenothmen-iq7ku 3 месяца назад
ya hmar give me a dam link to copy and paste the dam code
@noona7701
@noona7701 Месяц назад
😂 nice to see another Arab feeling the same way as me here
@biged606
@biged606 Год назад
First Like!!!👌 amazing tutorial! Just keep going!
@RehopeGames
@RehopeGames Год назад
Thank you so much that's good to hear 🙏
Далее
Scene Management in Unity | Code Review
10:16
Просмотров 8 тыс.
Вопрос Ребром - Серго
43:16
Просмотров 738 тыс.
Ко мне подкатил бармен
00:58
Просмотров 186 тыс.
I Spent 6 Years Making Games in Scratch
10:03
Просмотров 349 тыс.
How To Make A Game Alone
8:11
Просмотров 1,1 млн
UNITY 2D NPC DIALOGUE SYSTEM TUTORIAL
7:52
Просмотров 55 тыс.
How I Would Start Game Development (If I Started Over)
16:59
How I Made a 3D Platformer in 2D Game Engine
21:23
Просмотров 501 тыс.
I Oversimplified Famous Games
12:41
Просмотров 14 тыс.
Вопрос Ребром - Серго
43:16
Просмотров 738 тыс.