Unity 2D Platformer for Complete Beginners - #15 PAUSE MENU

  Рет қаралды 40,191

Pandemonium

Pandemonium

Күн бұрын

In this episode we'll add the ability to pause the game and a pause menu with some cool options like changing the volume of the sounds and music. We'll also discuss regions and PlayerPrefs.
➤ Support the channel on Patreon: / pandemonium_games
Subscribe and turn on the notifications if you don't want to miss the next episode!
➤ Complete project: github.com/nickbota/Unity-Pla...
➤ Discord : / discord
➤ Itch: nickbota.itch.io/
➤ Instagram: / pandemonium_games
➤ Twitter: / pandemoniumnick
#unity3d #unity2d #gamedev
Tags: Unity 2D Platformer for Complete Beginners,Unity 2D Platformer episode 15,pandemonium unity,unity 2d platformer,unity player prefs,unity regions,unity pause menu,unity pause,unity pause game,unity 2d pause menu,unity sound volume,unity music volume,unity 2d platformer pause,unity 2d platformer pause menu,unity playerprefs tutorial,unity options menu,unity pause system,unity 2d pause,unity2d,Unity 2D Platformer for Complete Beginners - #15 PAUSE MENU,unity
0:00 Intro
0:13 Pausing the Game
5:25 Menu Options
6:26 Changing the Volume
17:37 Volume UI Display
20:55 Final Result
21:14 Shoutout and Credits

Пікірлер: 100
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Merry Christmas and Happy Holidays to everyone! 🎅🎄 If you're having issues with the code or the project here's the link to the GitHub repo: github.com/nickbota/Unity-Platformer-Episode-15
@ahmadeshon9347
@ahmadeshon9347 Жыл бұрын
Hello Pandemonium, great video tutorial very helpful. I was wondering if I could use this project that i programmed using your help with a few different additions as my own game and upload it on Steam. Would I need to have rights for everything included in this project or is it free to use?
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
@@ahmadeshon9347 Hey Ahmad 👋Feel free to use the code as you please. The graphical assets and the music you have to check though, go to the asset store and see if they have any specific license conditions. I remember surely that the background music requires attribution for both commercial and free use.
@HermitBearGames
@HermitBearGames Жыл бұрын
One of my New Year's resolutions this year is to finally make at least 1 game and your videos are making the process much easier to understand and work on! Thank you so much for the videos you make and I hope you continue in the future!
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
I'm sure you'll achieve and even surpass it! Glad to help and sure, next episode coming soon :)
@mateozovic1800
@mateozovic1800 8 ай бұрын
Great video as always, just finished the series, waiting for the next one! Keep doing awesome job 😁
@UA_stud
@UA_stud Жыл бұрын
As always, fantastic video! Thank you for keeping this series alive! It's the best Unity2D tutorial series on KZbin.
@AdrenalSnakeREX
@AdrenalSnakeREX 4 ай бұрын
just finished this great vid and got everything i need to start my very first game! Great tutorials, i hope you make more of these for more interesting stuff to add in games
@shankodawgy
@shankodawgy 14 сағат бұрын
Great work dude! You put a lot of time and effort into this, was a great way to get familiar with Unity again :). Appreciate it!
@scorpiusjones5436
@scorpiusjones5436 Жыл бұрын
Thanks so much for this tutorial series! It was fun and learned a lot along the way!
@waltersattazahn1480
@waltersattazahn1480 Жыл бұрын
Great video. Got everything working and I like how the numbers give the player/user an idea of what the sound level will be at.
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Thanks Walter! Now that you mention it, it would be funny to make a game where the player has no idea what the options are 😅
@adarshsahu6724
@adarshsahu6724 Жыл бұрын
This is the best Unity sound manager tutorial presented on KZbin. Thank you
@PandemoniumGameDev
@PandemoniumGameDev 11 ай бұрын
Thanks for the praise!
@ChadEricCartman
@ChadEricCartman Жыл бұрын
Gold mine channel, learnt so much. Your videos are so awesome and thorough. Honestly, I know its a lot to ask but hope you make a 3D game guide too soon
@vma4444
@vma4444 6 ай бұрын
Thank you this fantastic tutorial series i did it all along and i finnaly finished! You said you would add a boss that would be really good.
@ryanoneill9862
@ryanoneill9862 Жыл бұрын
Thank you so much for all the help man, im making a game for my university project and this series has really helped me get into unity. So glad the series is back. I was wondering if you are going to make a tutorial on how to make a main menu screen that you see when you start the game? Again thanks for all your help and i cant wait to see more from you!
@aluizioneto8126
@aluizioneto8126 Жыл бұрын
Same for me bro !
@aluizioneto8126
@aluizioneto8126 Жыл бұрын
Have you managed to make a main menu screen Ryan? I wanna make one myself too
@Lucario445MC
@Lucario445MC Ай бұрын
Just finished watching the playlist, while following along and learning a lot about Unity programming, I can't thank you enough for the amount of work you put in that project and series! I gotta ask though, we were able to see a pretty nice main menu at the start of this last episode, sadly, we didn't get to listen to your explainations on how you arrived at such a result. I could see in the GitHub repo that the files do contain the Main Menu and a Menu Manager script, was this an oversight from your end or were you planning on releasing another episode covering the subject? I have no doubts that with the knowledge you already shared and the script available on GitHub, I'd be able to figure out how to make it work, but some people might not notice this.
@Larrto.
@Larrto. Жыл бұрын
I caught up. was a good binge tutorial. - good code practices (consistent naming scheme, avoiding repetition, logical implementation for projectiles, etc) - game is actually fun - memes -san andreas mission complete outro
@BillSoutherland
@BillSoutherland Жыл бұрын
Excellent tutorial series, thank you very much for your time and effort.
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Thanks for the kind words, highly appreciated!
@koraninduangmala1181
@koraninduangmala1181 2 ай бұрын
Great video, Great series, Thanks for tutorial.
@thendimension4816
@thendimension4816 Жыл бұрын
thanks brother you are helping us a lot
@lvdzzz
@lvdzzz 11 ай бұрын
ty so much im preciate all of things u made for us
@SSMLivingPictures
@SSMLivingPictures Жыл бұрын
YAAAAASSS! Merry Christmas to us! Another Pandemonium vid!!! 🎁🎁🎁
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Happy coding!🎅Glad people still wanna watch these vids 😁
@SSMLivingPictures
@SSMLivingPictures Жыл бұрын
@@PandemoniumGameDev Love em! I've watched and re watched many of them. Im making a game with my 7 year old son, Im trying to get him into coding
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
@@SSMLivingPictures Good luck to both of you! 🙌
@SSMLivingPictures
@SSMLivingPictures Жыл бұрын
@@PandemoniumGameDev Thanks!
@Myotiss22
@Myotiss22 27 күн бұрын
I've just completed the tutorial, and I sincerely appreciate this work of yours. As a beginner, I'm aware of the difficult and complicated development of creating a game. Even bringing up a simple looking concept is a huge effort itself. Thank you for making my inception to this long way. Now go and make some good games folks😉
@PandemoniumGameDev
@PandemoniumGameDev 27 күн бұрын
Very well said and thanks for the props!
@blackblurgaming9760
@blackblurgaming9760 5 ай бұрын
Thank you so much for this guide! I recently took up a task for creating a project for my science exhibition in my school and since my subject of choice was computer science I thought why not make a game instead of building robots or using arduinos to make the same repetitive projects everyone does . Inspite of you not showing how add a win screen and a main menu I still figured it out on my own with a little bit of help from chatGPT ;) and guess what I won the first prize!! This wouldnt have been possible without your guides so Im utterly grateful to you ❤❤ P.S : I didnt outright copy your game instead used some of my own ideas and created my own main character, traps, made my own level design and even made my own music using groovepad only assets i did use were the free platforming tiles
@RaulGarciaa10
@RaulGarciaa10 Жыл бұрын
thank you for everything, new sub.
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Thank you!
@thanhnamle5737
@thanhnamle5737 11 ай бұрын
Thank man. It is fantastic series for beginner
@PandemoniumGameDev
@PandemoniumGameDev 11 ай бұрын
Very glad to hear that, thanks for watching!
@Catattack_
@Catattack_ 10 ай бұрын
@@PandemoniumGameDev how do you make more levels?
@turtlegod1013
@turtlegod1013 9 ай бұрын
Is there a way for the Selection Arrow's x position to change depending on which option it is pointing to? So that it is a specific distance left of the text. For example the x position when it is pointing to Restart will be higher than when it is pointing to Main Menu, but the distance between the Selection Arrow and the option text will be consitient
@AdrenalSnakeREX
@AdrenalSnakeREX 4 ай бұрын
just noticed this near the end, but what happens with the MenuManager script you have in the UI script folder? you didnt mention it at all in this video or the previous one
@XecuteLostWave
@XecuteLostWave 2 ай бұрын
sorta dissapointed you stopped this, theres still things you never went over, like a start menu for example. aswell as how to turn it into multiple levels, hopefully you come back soon to make more videos! as these are the best tutorials for this game style in my opinion, very easy to follow, while still explaining everything your doing so i can still learn and not just copy/paste!
@Dev_CHA2
@Dev_CHA2 Жыл бұрын
i made a few levels but for the ending i made it when u collide with a object it takes you to a new scene it works but when im in the new scene the pause menu does not work?
@alexandrerodrigues264
@alexandrerodrigues264 11 ай бұрын
hello, for now i want to thank you for all the tutorials so far, i'm on a final school project and i'm making your game, could you release the next episode please. Thank you for everything
@StigDesign
@StigDesign Жыл бұрын
Merry Christmas and happy new year :D🎄 Great to see new video :D HeHe think i need to rework my own project with the region endregion hehe to make it easy to work on hehe :D
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Merry Christmas Stig! Regions are cool but not necessary at all, so it's up to you :D
@StigDesign
@StigDesign Жыл бұрын
@@PandemoniumGameDev hehe yes i know :D
@DizzyPlay_official
@DizzyPlay_official Жыл бұрын
Go next))
@Egor-kc2dx
@Egor-kc2dx Жыл бұрын
Good video bro
@hautranuc6936
@hautranuc6936 6 ай бұрын
Hello, thanks for tutorial! Are you planning to continue this series?
@quinnger
@quinnger Жыл бұрын
What video was the UI Manager script attached to the UICanvas made in?
@acegarner3248
@acegarner3248 Жыл бұрын
Any idea when a new video for this series will be uploaded please
@pepe4188
@pepe4188 6 ай бұрын
Hey bro, where can I get ready-made code for these games to copy? can you give me a link please??
@TheShutupandgame
@TheShutupandgame Жыл бұрын
So whenever I hit the mouse down while on the pause menu a fireball starts to shoot in the game anyone know a fix to this?
@jasonnjoroge7947
@jasonnjoroge7947 2 ай бұрын
Hello Pandemonium. Kindly help on how to link the game levels 1, 2 & 3. thank you
@lpa1970
@lpa1970 11 ай бұрын
Hey man great tutorials When are you going to upload the next vid im super excited Can you teach us like some kind of ending or credits in the next video pls
@ParaEmpresa
@ParaEmpresa Жыл бұрын
In the updated versions of Unity, it defaults to "Text Mesh Pro", so it is likely to have problems trying to display the volume level of music and sounds. What worked for me was to import another library "TMPro", I attach my script. Assets>UI>VolumeText using UnityEngine; using TMPro; public class VolumeText : MonoBehaviour { [SerializeField] private string volumeName; [SerializeField] private string textIntro; //Sound: or Music: //private Text txt; private TextMeshProUGUI txt; private void Awake() { txt = GetComponent(); } private void Update() { UpdateVolume(); } private void UpdateVolume() { float volumeValue = PlayerPrefs.GetFloat(volumeName) * 100; txt.text = textIntro + volumeValue.ToString(); } } I appreciate your excellent videos bro
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Good tip, and thanks a lot for the support! 🙌
@scorpiusjones5436
@scorpiusjones5436 Жыл бұрын
Thanks very much for this tip! I was stuck on this as the last thing I was trying to finish and having trouble finding a solution. This works perfectly, thanks again for taking the time to share it here!
@user-vn7bg7nj8l
@user-vn7bg7nj8l 19 күн бұрын
In the game, when moving and standing in a trap area, my character is only damaged once. How do I fix it?
@jcrj28
@jcrj28 Жыл бұрын
Thank you so much for this tutorial, i have learned a lot, i only have one issu and i wanted to ask you about it, my player its getting stuck between the collision of the room 1 and room 2 and i dont know why
@UA_stud
@UA_stud Жыл бұрын
Previously Pandemonium mentioned that this can happen at boxcollider2D intersections. If you have two separate ground sections for each room, this is likely the problem. I had the same issue, and fixed it by using one boxcollider2D for the entire ground area.
@ushas3349
@ushas3349 4 ай бұрын
Hi, Its a great series. I learnt a lot through these episodes. I am new to unity. But your explanation is really good. I have one issue in the last episode. When running null reference exception for the volumetext. It does not return any text for both sound and music volume. Went by your scriot only. Could you give me hint to solve. Looks like txt object does not have reference. The screen goes blank!! Thank you for the wonderful series. Usha
@AlexeyAmadeas
@AlexeyAmadeas Жыл бұрын
My code completely repeats yours, but each text writes the volume value: 0. I'm trying to figure out the problem on my own, if successful, I'll let you know what went wrong. Merry Christmas!!!
@adrianrags7915
@adrianrags7915 6 ай бұрын
Hi can i ask you how to create play menu i saw it in your video but there is not code on how you do it can i ask for it?
@gokuization
@gokuization Жыл бұрын
Would you like to teach us how to make a pendulum trap with a spike ball in the future? 😊😊
@duyha2454
@duyha2454 Жыл бұрын
thank you very much
@PandemoniumGameDev
@PandemoniumGameDev 11 ай бұрын
You're very welcome!
@DizzyPlay_official
@DizzyPlay_official Жыл бұрын
Когда следующий урок?
@maksimuz3640
@maksimuz3640 Жыл бұрын
What Unity version you work when i download your ready project from github Unity changes all objects with error that the project for snatcher Unity version
@turtlegod1013
@turtlegod1013 9 ай бұрын
usually unity tells you which editor version is required to run the project
@acegarner3248
@acegarner3248 Жыл бұрын
when will the next video be released please
@mahmutkaan
@mahmutkaan 6 ай бұрын
Can we see save system from you? 😅 It would be great and instructive.
@saifgames2468
@saifgames2468 Жыл бұрын
Can you also complete the hyper casual game serie thank you !!
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Working on episode 3 right now!
@Dev_CHA2
@Dev_CHA2 Жыл бұрын
this project is great but i was wondering how to add more levels?
@bshnaz5331
@bshnaz5331 Жыл бұрын
Create a new scène and link it like u did with the menu one
@atTran-fb4wt
@atTran-fb4wt Жыл бұрын
Great tutorial!!! How we can do in the next time ?
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
How can we do what?
@olegpetrovic
@olegpetrovic 6 ай бұрын
Come baaaack
@dino_x86
@dino_x86 Жыл бұрын
youpi I am a 15 year old teenager who is creating a video game under Unity and I am following your tutorials for a long time with great pleasure. are you going to continue your series?
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Hey there, glad you're finding it useful! Yes, there are 3 more episodes left: main menu, level progression and a boss fight
@KINGGAMES-qd8sn
@KINGGAMES-qd8sn Жыл бұрын
@@PandemoniumGameDev can you do these ep in next months
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
@@KINGGAMES-qd8sn I will
@SSMLivingPictures
@SSMLivingPictures Жыл бұрын
@@PandemoniumGameDev Take your time Pan, we appreciate what you do!
@huntingyou5098
@huntingyou5098 Жыл бұрын
@@PandemoniumGameDev thank you so much
@muhammadfahadchaudhry4968
@muhammadfahadchaudhry4968 Жыл бұрын
sir when we're get new video of this game please upload as fast as you can sir :) , btw new subscriber.
@aveggoyalvines5285
@aveggoyalvines5285 4 ай бұрын
What about main menu??
@shadowlander468
@shadowlander468 Жыл бұрын
Add level select screen please. Thx in advance.
@digiartakash7943
@digiartakash7943 Жыл бұрын
please can you add melee attack
@turtlegod1013
@turtlegod1013 9 ай бұрын
I think in this game because of the dragon sprite, he decided to only go with a ranged attack. There was no animation set for a melee attack. But if you remember how to make the melee attack from the Melee Enemy, I'm sure you can find or make a sprite that uses melee attacks and create one with it.
@HelloWorld-zg4bh
@HelloWorld-zg4bh Жыл бұрын
We wanr hyper casual part😕
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Check my latest community post, it's already out on Patreon and coming to KZbin in about 6 hours
@PoisonedAl
@PoisonedAl 10 ай бұрын
A lot of "draw the rest of the f'ing owl" here. Which was annoying as I knew most of everything except the parts you glossed over.
@jackpelon9852
@jackpelon9852 Жыл бұрын
Hello friend @Pandemonium, I have a problem, and tried to make a stalactite that detects the Player and then falls. So far I have achieved it but what I cannot do is make the stalactite hit the ground trigger the breaking animation and after 2 seconds the stalactite should appear again on top of the ceiling smoothly and be ready in case the player I went back there and detected it again and fell again... Could you make a video tutorial about that? I will be very very grateful friend @Pandemonium.🙏🙏🙏🙏🙏
@jamieparkin7054
@jamieparkin7054 Жыл бұрын
i got to about the 11 min mark everything was working and my PC crashed i had saved the unity code as i was going along but not the unity project, when i restarted the project i remade the pause menu and re linked all the functions that was missing but now the background music doesn't work and when i press E in the menu the game freezes and the player doesn't do anything now. I had my friend help to debug the script and the script is working perfect so i download the git hub copy everything is working fine so the issue is with my unity project i even asked chat GPT and the AI can't fix it. please help if you know how to fix this. and this is the only error i get DontDestroyOnLoad only works for root GameObjects or components on root GameObjects. UnityEngine.StackTraceUtility:ExtractStackTrace () SoundManager:Awake () (at Assets/Scripts/Core/SoundManager.cs:18)
@lillehoff
@lillehoff Ай бұрын
@edgexcution7108
@edgexcution7108 Жыл бұрын
Hello, thanks for tutorial! Are you planning to continue this series?
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
I plan on adding a main menu, a level switching system and a boss. So probably 3 episodes left here
@edgexcution7108
@edgexcution7108 Жыл бұрын
@@PandemoniumGameDev Thanks for answer, I'll be waiting for new videos. Good luck and Merry Christmas!
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
100❤️
00:20
Nonomen ノノメン
Рет қаралды 65 МЛН
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 3,6 МЛН
БРАВЛ СТАРС ВЗЛОМАЛИ?!
18:31
Поззи
Рет қаралды 490 М.
Қорқынышты Майнкрафт - 5 бөлім ✅
32:10
БОЛЬШОЙ ПОБЕГ ИЗ ШКОЛЫ МОНСТР В ROBLOX
28:54
BLAST Premier Spring Final 2024 Presented by Revolut: Group Stage, Day 1
11:55:00