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.
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.
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 😊
@@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 😅
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.
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 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(); } } }
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?
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 😊
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
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"); } } }
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 "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