- Видео 31
- Просмотров 4 194
Damm Labs
США
Добавлен 25 май 2024
Welcome to Damm Labs!
Here is the best place for all of your quick and easy coding tutorials. We are always looking for new ideas to create and teach new lessons, and we hope you enjoy!
Stay tuned for new videos every Wednesday!
damm-labs.itch.io/
ruclips.net/channel/UCRjAzE9pCEuJnHgIoxrlMZw
Here is the best place for all of your quick and easy coding tutorials. We are always looking for new ideas to create and teach new lessons, and we hope you enjoy!
Stay tuned for new videos every Wednesday!
damm-labs.itch.io/
ruclips.net/channel/UCRjAzE9pCEuJnHgIoxrlMZw
How to Double Jump in Unity
In this video, Ryan shows you how to add double jump to your Unity game.
Don't forget to like, subscribe, and share with friends!
Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Don't forget to like, subscribe, and share with friends!
Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Просмотров: 51
Видео
How to Save and Load in Unity: PlayerPrefs
Просмотров 39День назад
In this video, Ryan shows you how to create a basic save and load system in your game with PlayerPrefs inside of Unity. By the end, you should be able to add this system to your own games! Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watch...
How to Make Scene Transitions in Unity
Просмотров 6914 дней назад
In this video, Ryan shows you how to make cool scene transitions and how to hook up the main menu to your game. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
How to Make a Main Menu in Unity
Просмотров 18621 день назад
In this video, Ryan shows you how to make a main menu that you can use in all of your games. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Debugging in Unity: A Masters Guide
Просмотров 103Месяц назад
In this video, Ryan shows you how to debug errors inside of your Unity project. By the end, you should be able to debug any errors that you come across. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 8: Importing Sprites
Просмотров 70Месяц назад
In this video, Ryan shows you how to use the sprite editor in Unity and how to import sprites from the Unity asset store. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 7: UI System
Просмотров 99Месяц назад
In this video, Ryan shows you all about the UI system in Unity. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 6: Your First Game!
Просмотров 164Месяц назад
In this video, Ryan shows you how to make your first game inside of Unity. The game is a driving game where you pick up coins to boost your score. This tutorial uses the knowledge of all the other Unity Basics tutorials to make this game. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to g...
Unity Basics Episode 5: Prefabs
Просмотров 1032 месяца назад
In this video, Ryan shows you how to use Prefabs in your own games inside of Unity. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 4: Methods and Conditionals
Просмотров 602 месяца назад
In this video, Ryan shows you the basics of methods and conditionals in Unity. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 3: C# Scripting
Просмотров 1152 месяца назад
In this video, Ryan shows you the basics of C# coding in Unity and how to create variables. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 2: GameObjects
Просмотров 2262 месяца назад
In this video, Ryan shows how to add GameObjects to your scene in Unity and how to add scripts to them. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
How to Add Sounds in Unity: Unity Halloween Tutorial
Просмотров 692 месяца назад
In this video, Ryan shows you how to add music and sound effects to your game in Unity. By the end, you should be able to add your own effects into your game. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
Unity Basics Episode 1: Setting Up
Просмотров 583 месяца назад
In this video, Ryan shows you how to set up Unity on your computer to be able to code games. By the end, you should be able to make your own project and have Unity set up. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying ...
How to Dash in Unity 2D
Просмотров 1033 месяца назад
In this video, Ryan shows you how to make a dashing character in Unity 2D. By the end, you should be able to implement your own dash into your game. Don't forget to like, subscribe, and share with friends! Make sure to share and comment down below with any questions or errors you may have; we will try to get back to you as fast as we can! Thanks for watching and enjoying our video!
How to Make Instant Tilemaps in Unity: Rule Tiles
Просмотров 583 месяца назад
How to Make Instant Tilemaps in Unity: Rule Tiles
How to Export Unity Games to WebGL and to a .exe File
Просмотров 1654 месяца назад
How to Export Unity Games to WebGL and to a .exe File
How To Make Rock, Paper, Scissors in Unity
Просмотров 3045 месяцев назад
How To Make Rock, Paper, Scissors in Unity
Simple 2D Platformer Unity Tutorial Episode 6: Finalizing
Просмотров 765 месяцев назад
Simple 2D Platformer Unity Tutorial Episode 6: Finalizing
Simple 2D Platformer Unity Tutorial Episode 5: Traps
Просмотров 815 месяцев назад
Simple 2D Platformer Unity Tutorial Episode 5: Traps
Simple 2D Platformer Unity Tutorial Episode 4: Pineapples
Просмотров 696 месяцев назад
Simple 2D Platformer Unity Tutorial Episode 4: Pineapples
Simple 2D Platformer Unity Tutorial Episode 3: Animations
Просмотров 936 месяцев назад
Simple 2D Platformer Unity Tutorial Episode 3: Animations
Simple 2D Platformer Unity Tutorial Episode 2: Player Movement
Просмотров 1156 месяцев назад
Simple 2D Platformer Unity Tutorial Episode 2: Player Movement
Simple 2D Platformer Unity Tutorial Episode 1: Tilemaps
Просмотров 2316 месяцев назад
Simple 2D Platformer Unity Tutorial Episode 1: Tilemaps
After doing the Rock, Paper Scissors tutorial, I am about to eat up all the content on your channel rn. You are so easy to understand.
After multiple attempts of trying to make a game, and giving up, this video is what finally helped me finish my first game. Although very simple, it feels so good to have finally completed a project. Thank you so much for this straightforward and well-paced tutorial. It was so very helpful to a complete beginner like myself.
I am so happy that you got to finish this game as your first game and that you like the tutorial! I hope you continue making games and have lots of fun!
Hey Sir, for my UI, instead of scale, I made 3 different buttons for different resolution scales, and 3 different buttons for difficulty as well, how do I code this in visual studio? Also I made a seperate 'pause canvas' with a 'save' button' , how can I go about this?
Hello! For the resolution buttons, you can make public methods for each that just have a line of code that set the resolution of the game to that set resolution. The method that you want is Screen.SetResolution(). This method looks for three parameters, width, height, and if you want to be in full screen or not. You can just manually put in the numbers for each of your buttons and you can chose whether you want your game to be in full screen or not, but I would recommend that you keep it consistent across the resolution values. For the difficulty buttons, you can make public methods for each of those and inside of the methods, you would need to update the thing that changes the difficulty. If you were making a platforming game for example, the difficulty buttons could set your maximum health lower, or if you were making a top down shooter, the buttons could change the amount of enemies that spawn per wave. For the pause canvas and save button, you have two choices. The first choice is easier and can be used for smaller, simpler games. But, if you have a large game that you are planning to publish or sell, you should create a save and load system. The save and load system is much more complicated and I will link another video to try to explain it. ruclips.net/video/aUi9aijvpgs/видео.html Be warned though, as this is much more complicated than the videos I make. If you want to be able to display the canvas to the player when they push escape or another key, you can get an if statement in your player controller to check if they pushed a certain button. If they did, you can stop the time while the menu is open by typing Time.timeScale = 0 and set the canvas game object to true by pauseCanvas.SetActive(true). Once the player has pushed a button to get out of the menu, set time back to full by typing Time.timeScale = 1 and set the pause canvas to be false by typing pauseCavnas.SetActive(false). The choice that i will be talking about is "PlayerPrefs". This is something that stores data about the player. To use this, you would type PlayerPrefs dot something. The something would be either Get/Set and then a type of input, such as float, int, or string. Set sets the data and will set it with a key, which is a string. So if I wanted to set the player's health, I would write: PlayerPrefs.SetFloat("PlayerHealth", 100f) or something like that. Get gets the data and only looks for a key. You can then set that data into a variable and later change another value. For example, if you wanted to get the player's health after they saved, you would write something like: playerHealth = PlayerPrefs.GetFloat("PlayerHealth") You could set all your PlayerPrefs in your save button and when you load your game back up, you can set all your variables to the already set PlayerPrefs. I realize that this was a lot, and if you need any help or want a video on this, just comment here! Happy coding!
Hey thanks man, you know for the pause canvas, I made another gameobject and wrote this: void Update() { // Check if the Escape key is pressed if (Input.GetKeyDown(KeyCode.Escape)) { if (isPaused) { ResumeGame(); // Exit pause menu } else { PauseGame(); // Enter pause menu } } } void PauseGame() { Time.timeScale = 0; // Stop the game pauseCanvas.SetActive(true); // Show pause menu isPaused = true; } void ResumeGame() { Time.timeScale = 1; // Resume the game pauseCanvas.SetActive(false); // Hide pause menu isPaused = false; would this be correct way of implementing the pause? i saw other videos and they made new scripts entirely for the pause
@eshankhan2408 I think that's a good way to do it, and probably the way I would do it too. Great work on making this yourself!
@DammLabs hey dude, I wanted to test my final UI but every time I run it, the system immediately shows the pause canvas only instead of the main menu, ive been trying to fix this for hours now, its because during void update it sets it to pause canvas but how do I fix this logic error. I wanted the game to check for the escape key only when the actual game is being run which is after they press play :( public class MenuManager : MonoBehaviour { public GameObject MainMenuCanvas; public GameObject SettingsCanvas; public GameObject PauseCanvas; private bool isPaused = false; void Start() { } void Update() { if (Input.GetKeyUp(KeyCode.Escape)) { if (isPaused) { OnResumeButtonClicked(); } } else { OnPauseButtonClicked(); } } public void OnPlayButtonClicked() { //stuff } public void OnPauseButtonClicked() { PauseCanvas.SetActive(true); MainMenuCanvas.SetActive(false); SettingsCanvas.SetActive(false); Time.timeScale = 0; isPaused = true; } public void OnBackButtonClicked() { MainMenuCanvas.SetActive(true); SettingsCanvas.SetActive(false); PauseCanvas.SetActive(false); isPaused= false; } public void OnQuitButtonClicked() { Application.Quit(); } public void OnSettingsButtonClicked() { SettingsCanvas.SetActive(true); MainMenuCanvas.SetActive(false); PauseCanvas.SetActive(false); Time.timeScale = 0; } public void OnResumeButtonClicked() { MainMenuCanvas.SetActive(true); SettingsCanvas.SetActive(false); PauseCanvas.SetActive(false); Time.timeScale = 1; isPaused = false; } this is a big ask but i appreciate any help 🙏
@eshankhan2408 To fix the problem of the pause canvas showing at the start of the game, you have to change your Update function a bit. You have it checking for input, and if the input is not true, calling the OnPauseButtonClicked method. You want to move the else statement that has calling the OnPauseButtonClicked method in it to inside of the input if statement. The code should look like this: void Update() { if (Input.GetKeyUp(KeyCode.Escape)) { if (isPaused) { OnResumeButtonClicked(); } else { OnPauseButtonClicked(); } } } If this doesn't make sense, I would recommend you put it into a code visualizer of something like that to see the lines of code being executed. To make it so that you can only have the pause canvas open if the game is running, create another bool that is true when the game is running. Then you can put that bool into your if statement. The code would look something like this: bool GameIsRunning = false; void Update() { if (Input.GetKeyUp(KeyCode.Escape) && GameIsRunning ==true) { if (isPaused) { OnResumeButtonClicked(); } else { OnPauseButtonClicked(); } } } I hope this helps and if you need more help on anything else, just ask!
Very useful video tysm!
I am so glad that you found my video useful! Thanks for watching!
what a tutorial about making a game in unity about when you push the play button then a game will start are you going to do a tutorial on that.
I will definitely make a tutorial on that. Thank you for the comment and stay tuned for next Wednesday for the video!
what about when you click on the play button the what can you make a game when you click on the play button do you have to make a game when you push play for a game you are making.
Can you rephrase this? I would love to help, but I am a little confused with the question.
owsem
Great video! What project(s) are you currently working on? I'm just making small Demos/MVPs Minimal Viable Products
Thanks! I am working on a few small projects and will post them to my itch.io page when I am finished with them. I love that you are making your own small games! Keep on working hard on game development!
Thanks for the Video! It was very helpful. Can't wait for the next Unity tutorials :D
We are glad that this tutorial helped you so much! Thank you for the support!
w video you helped me understand hpw to do moverment now keep up the good work
Thanks so much for this awesome comment! We are glad that our video helped you!
you are 1 sub closer to 100 subs!
Thank you so much for the support! We really appreciate it!
Boo
Thanks for this its really helped me to understand unity a lot better. I'm going to give you a sub
Thank you for helping us grow this channel! We hope you keep learning Unity and have lots of fun while at it.
@@DammLabs thanks man