How to make a HIGH SCORE in Unity

  Рет қаралды 424,710

Brackeys

Brackeys

Күн бұрын

Пікірлер: 429
@Brackeys
@Brackeys 7 жыл бұрын
Hey everyone! Glad that you guys like the video :) Some of you are asking about security. Now PlayerPrefs is in no way secure. It is easy to read and modify values if you know what to search for. Of course you can do your own encryption before storing data through PlayerPrefs but I just found this free Asset Store plugin that works in pretty much the same way as PlayerPrefs but with encryption: www.assetstore.unity3d.com/#!/content/32357 Hope that was useful to you :)
@drowsy5384
@drowsy5384 7 жыл бұрын
Brackeys encryption would be much easier with BinaryFormatter or XmlSerializer (I really prefer the first one) and also it's impossible to store anything but strings ints and float with playerprefs
@commentcommenter4198
@commentcommenter4198 7 жыл бұрын
Brackeys Hey brackeys. I really love your new tutorials! They are much shorter and understandable than your older ones? Will there be a chance of you making a new tutorial for a 2d platformer? I'm not fond of the old tutorials because of their length and I don't like your teaching style before. I'm also really glad you speak less inconsistently with no more "uhhh" in the vids
@Blackthornprod
@Blackthornprod 7 жыл бұрын
You can also add bools with player prefs :)
@gempio2634
@gempio2634 5 жыл бұрын
@@drowsy5384 If you can store strings, you can store serialized data like jsons or xml.
@noghost6797
@noghost6797 4 жыл бұрын
Dude. I don't know how i adding Numbers. I mean *plus* . It's not working, and was to ask you in the comment seqtion.
@peterpeperoni7102
@peterpeperoni7102 4 жыл бұрын
The real question is: How did Brackey learn to code when there were no Brackeys videos?
@rahulsbhatt
@rahulsbhatt 4 жыл бұрын
Top 10 questions scientists couldn't find an answer to.
@akashroy4747
@akashroy4747 4 жыл бұрын
documentation and documentation
@VioletDolphin
@VioletDolphin 4 жыл бұрын
Maybe He already knows C## before he was born...
@VioletDolphin
@VioletDolphin 4 жыл бұрын
@@informalmods6044 LMAO
@TheAlphaTeamPlays
@TheAlphaTeamPlays 4 жыл бұрын
Brackets invented code
@Dragonhawk232
@Dragonhawk232 2 жыл бұрын
This is years later but in case anyone else is going through this old playlist learning unity, my unity by default uses TextMeshPro instead of regular Unity text, so a slight change I had to do within the Dice script was adding "using TMPro;" and then instead of a regular Text class you do "public TextMeshProUGUI score;" might save someone else the time I had to spend googling :)
@Dragonhawk232
@Dragonhawk232 2 жыл бұрын
same thing with the highscore, had to do "public TextMeshProUGUI highscore;" to get it to let me slot the TMP into the component
@Bossdonlawat
@Bossdonlawat 2 жыл бұрын
@@Dragonhawk232 Thank you very much sir!
@b1llspc
@b1llspc Жыл бұрын
Bless. Just had this same issue, wish I saw this first lol
@nirajtoysworld905
@nirajtoysworld905 10 ай бұрын
yah
@wehh1
@wehh1 7 жыл бұрын
"I like living in the edge so ill just do delete all" - Brackeys 2017
@nubcops220
@nubcops220 5 жыл бұрын
not funny :/
@iteratedofficial
@iteratedofficial 4 жыл бұрын
@GigaramsYT yeah
@sh0unakgg274
@sh0unakgg274 4 жыл бұрын
Dio
@gaycat599
@gaycat599 4 жыл бұрын
Why do people give dislikes?!! This is literally FREE education!!!!!
@dev.prateek5781
@dev.prateek5781 4 жыл бұрын
jealousy, i guess ?
@K0BRAKID
@K0BRAKID 4 жыл бұрын
I was expecting a tutorial on how to save it to disk for the next time I launch the game. But his dance at the end made me take back my dislike into a like. Honestly I love this dude I couldnt dislike his video.
@zzzinga
@zzzinga 4 жыл бұрын
@@K0BRAKID but this is exactly it lol
@BrentMurrell
@BrentMurrell 4 жыл бұрын
Dislikes don't always mean someone didn't like the video. I think people often use the thumbs down to tell KZbin what they are interested in when new videos are suggested or autoplayed. Because of that, I think a certain number of thumbs downs are unavoidable.
@mossupergamer1912
@mossupergamer1912 4 жыл бұрын
H -Having A - Anger T - Toward E - Everyone R - Reaching S - Success ^ That's why
@trill9341
@trill9341 7 жыл бұрын
I was just about to go to bed....but who needs sleep. Love your videos btw, you are helping me fullfil my dream
@Brackeys
@Brackeys 7 жыл бұрын
Thanks a lot man! Glad I can help :)
@moric4677
@moric4677 6 жыл бұрын
@james matthews HUG
@parthudawant7015
@parthudawant7015 5 жыл бұрын
@@Brackeys Can you please tell about the resources you used to learn game development or some of the best books that must be read to learn game development and to achieve such great expertise like you have achieved ? Please reply!! Keep up the good work!👍
@Mikewar1230
@Mikewar1230 4 жыл бұрын
I just subscribed because 4/5 times when I am looking for a tutorial or explanation on something, your video shows up first and it's almost always the most brief but concise tutorial out there. Thanks man.
@Doctrine60
@Doctrine60 5 жыл бұрын
Who does not smile while watching Brackey's Tutorials.....this guy is awesome.
@GameOver7853
@GameOver7853 7 жыл бұрын
That ending tho
@yoctometric
@yoctometric 7 жыл бұрын
your tutorials are the perfect mix of learning from mistakes, quick comedy that adds to learning instead of taking away, and concise teaching. You have this down to an art, and I can't thank you enough
@matheusmachado5038
@matheusmachado5038 7 жыл бұрын
Just what I needed! (read in Mario's voice)
@forexalised9053
@forexalised9053 7 жыл бұрын
I changed my UI view to world space (was messing around) and rotated the UI and made it look all 3D :) Made the button a PNG of a Dice and added animations to the button to make it grow slightly larger on highlight, be slightly smaller on click/click hold. All in all, your tutorials are amazing and through them, I've been introduced to being finally able to just mess around with Unity and code :)
@peeei7423
@peeei7423 3 жыл бұрын
this man makes me feel so smart with his tutorials, thx and goodbye brackeys
@neckudart272
@neckudart272 7 жыл бұрын
this is the best unity channel ever .
@gamedev_navneet
@gamedev_navneet 3 жыл бұрын
Brackeys always makes me understand things very simple. Thank you.
@toonzelda3353
@toonzelda3353 2 жыл бұрын
Your video helped me out with a Unity assignment where I had to get the best race time :). I used exactly your algorithm and it helped me out! I don't know if you will see this comment Brackey's but thank you. You won't believe how much your videos have impact me and many others studying gamedev.
@benjaminmartinez4159
@benjaminmartinez4159 5 жыл бұрын
Thank you sooo much! I looked at other places for this information, but you're the only one who gave it out so simply.
@funkymonkey15963
@funkymonkey15963 4 жыл бұрын
It's taken me days to get thru this series and then onto this vid. troubleshooting and the like cause Im kinda slow. but man it was all worth it to see Brackey do that little jig at the end!
@tristanarnold232
@tristanarnold232 6 жыл бұрын
Thank you for all your videos! I am new to game development and you are really helping me learn fast. I am able to quickly learn core concepts, then experiment and expand on my own. Very well put together!
@abdulrhman-noor_2010
@abdulrhman-noor_2010 6 ай бұрын
THANK YOU SO MUCH MAN
@sinakamali3297
@sinakamali3297 5 жыл бұрын
Best instructor EVER!!!
@thefallenlime
@thefallenlime 3 жыл бұрын
This was by far the easiest video to follow for this. Thanks a ton!
@pruthvi4703
@pruthvi4703 4 жыл бұрын
Thanks Brackeys, this always helps me out when I'm struggling to make a high score feature.
@valdak5277
@valdak5277 Жыл бұрын
Thanks a lot, this was really helpful even 6 years later!
@eze-rivals
@eze-rivals 6 жыл бұрын
Good tutorial! If you are making a larger game though, you may want to use encrypted or binary variables, but this is great for quickly making highscores!
@braindamagecontent
@braindamagecontent Жыл бұрын
it's been more than two years... brackeys is still coming in clutch lmao
@shazwanabdullah9276
@shazwanabdullah9276 3 жыл бұрын
Thanks Again Brackey’s. You bring inspiration to all of us 🙌🏽
@Oxmond
@Oxmond 4 жыл бұрын
Sweet! Great tutorial! ...and awesome DANCING! 👍🤓🧡
@jacedaniels1812
@jacedaniels1812 6 жыл бұрын
Dude you have no idea how helpful and easy to learn this was! Thanks alot! Cheers!
@aleksandarvagner9826
@aleksandarvagner9826 7 жыл бұрын
Will you please make a leaderboard tutorial?
@seunn
@seunn 7 жыл бұрын
yaaa
@jole0
@jole0 7 жыл бұрын
Richard Wagner Then you need to connect your game to for example Google Play services
@LoadX321
@LoadX321 7 жыл бұрын
not really, you could have a leader-board like that on arcade machines.
@Illu07
@Illu07 7 жыл бұрын
Sebastian Lague has a great Leaderboard tutorial for unity. Check it out.
@ResoCoder
@ResoCoder 7 жыл бұрын
Really the best thing you can do (at least when targeting Android) is to use Google Play Games Services. It's simple and awesome!
@hansaldrinantonio1331
@hansaldrinantonio1331 6 жыл бұрын
Thanks Brackeys!!
@dealvik
@dealvik 7 жыл бұрын
I like the short tutorials and all, but I really wish that Brackeys would make a game tutorial series's like he used to.
@vpeter56
@vpeter56 3 жыл бұрын
Anytime you find a Brackeys video, you know you feel safe with your last minute projects.
@Rob-fi2pe
@Rob-fi2pe 2 жыл бұрын
You are a life saver! I knew WHAT I needed to do but you showed me HOW. Thank you, thank you, thank you!
@ChickenSwek
@ChickenSwek 7 жыл бұрын
Haha 8:30 great video!
@Победник
@Победник 7 жыл бұрын
ChickenGaming Hahah, new meme...xD
@eliasfelix7205
@eliasfelix7205 7 жыл бұрын
ChickenGaming uuuugh
@diegocrusius
@diegocrusius 7 жыл бұрын
lol
@V.Z.69
@V.Z.69 4 жыл бұрын
Thank you! I should have started learning Unity a long time ago. Losing AS3 on Flash was a huge setback for development solitary developers like myself. Back on the horse to make some extra income!
@DevRightms
@DevRightms 7 жыл бұрын
whooo ! that dance at the end made my day ;)
@ShirshKhandeliaSKJ
@ShirshKhandeliaSKJ 4 жыл бұрын
I literally was paused just before it to read the comments, and went back to see the "dance at the end". It hit me right in the face! 😂😂😂
@santoshpss
@santoshpss 6 жыл бұрын
I really like your forced smile in every video :) Edit: I really do, it really makes the video more enjoyable, but don’t force yourself :)
@mammut4264
@mammut4264 7 жыл бұрын
Your videos have helped me alot. I am almost done with my second prototype now!
@WatchingTokyo
@WatchingTokyo 7 жыл бұрын
To make a high score in Unity you just need to beat everyone else at it!
@jarnovanderzee2469
@jarnovanderzee2469 7 жыл бұрын
Gui lol XD
@BeerfootBandit
@BeerfootBandit 7 жыл бұрын
Gui u just solved my problems bro thanks🤘
@direcahsyahira__
@direcahsyahira__ 6 жыл бұрын
lol
@Term1nus3st
@Term1nus3st 5 жыл бұрын
This is great for saving sensitivity in mobile apps. Thanks a lot
@CarlosHasAIdea
@CarlosHasAIdea 5 жыл бұрын
man really enjoy your vids
@ВојаПараноја
@ВојаПараноја 4 жыл бұрын
Thanks legend, realy helped with my first game, hope you come backone day
@Kusaji
@Kusaji 6 жыл бұрын
Great explanation of PlayerPrefs and how to use them. Thank you.
@kgibbsy
@kgibbsy 5 жыл бұрын
This is exactly what I'm looking for. I need a very simple level unlock system an I can amend this script slightly for that exact purpose. Thanks Brackeys!
@khankhalik2188
@khankhalik2188 6 жыл бұрын
Superb dance in the end!
@george9973
@george9973 7 жыл бұрын
Great tutorial! Thanks
@hjc1710
@hjc1710 4 жыл бұрын
My man! Another great tutorial.
@b1llspc
@b1llspc Жыл бұрын
Hey folks - I'm gonna save you some time, ready? If you can't drag Score text into the GameObject for the script, here's why: "Text" is no longer in use by Unity. it's TextMeshPro / TMP now. You'll want to update this code accordingly: // add this in up top using TMPro; // and instead of using the public Text score, change it to : public TextMeshProUGUI score;
@Acidpop
@Acidpop Жыл бұрын
i owe you my life
@meehdrescher
@meehdrescher 3 жыл бұрын
In my opinion, this is better than the save and load system video.
@foreducation408
@foreducation408 3 жыл бұрын
this is soo awesome, I was searching for a way to implement the high score feature in my game, this one helped me.
@dcry1003
@dcry1003 2 жыл бұрын
hey i have a question, when using playerprefs does the highscore also get saved *(it still gets displayed in the chosen UI text)* when you exit your game and enter again?
@foreducation408
@foreducation408 2 жыл бұрын
@@dcry1003 yes
@Moshugaani
@Moshugaani 5 жыл бұрын
Thank you very much! It was quite simple in the end.
@EndexPlay
@EndexPlay 5 жыл бұрын
great video!
@jb9480
@jb9480 Жыл бұрын
Thank you so muck for all your great videos
@harshalsingh7567
@harshalsingh7567 7 жыл бұрын
great video, nice dance too
@koofe0
@koofe0 4 жыл бұрын
Asbjorn : Rolls a dice with 7 sides LITERAL MATH : Am i a joke to you?
@mu6tu4e
@mu6tu4e 7 жыл бұрын
Awesome tutorial man. Thank you!
@mirianchavchavadze7494
@mirianchavchavadze7494 5 жыл бұрын
That ending :D lovely.
@wannaberickistevens
@wannaberickistevens 4 жыл бұрын
such an amazing video. has everything i needed.thanks!!
@vaibhav4215
@vaibhav4215 2 жыл бұрын
Thank you so much ❤
@gabrielesimoni6684
@gabrielesimoni6684 5 жыл бұрын
thank you! very clear tutorial
@blind_neighbourhoodNerd
@blind_neighbourhoodNerd 5 жыл бұрын
Thankyou so much!
@SpeedirX
@SpeedirX 6 жыл бұрын
I love you man!!! Best tutorials ever! Hugs for you!
@calebvonweichardt7785
@calebvonweichardt7785 4 жыл бұрын
HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG HUG
@cinemacat4108
@cinemacat4108 4 жыл бұрын
In the future, when I will gain money from game development, I think brackeys should make a whole video about my support on patreon 😂
@naku2804
@naku2804 4 жыл бұрын
what
@impheris
@impheris 6 жыл бұрын
Bro, you Are Amazing... keep your work...
@BeerfootBandit
@BeerfootBandit 7 жыл бұрын
I think Unity should recruit brackeys for those unite speeches they have at those conentions or whatever they are called because he is a pro at this. I learned alot from the vids keep it up👍👍👍👍👍
@BeerfootBandit
@BeerfootBandit 7 жыл бұрын
Conventions*
@lassewierowski1947
@lassewierowski1947 4 жыл бұрын
Thanks brackeys that was very helpfull!
@Pottsy
@Pottsy 7 жыл бұрын
Great Tutorial man!
@Capnarchie
@Capnarchie 7 жыл бұрын
when do we get multiplayer ingame chat tutorial for games
@mracipayam
@mracipayam 4 жыл бұрын
You are my hero man
@victorfranky2245
@victorfranky2245 4 жыл бұрын
Thank you so much, this helped me alot! 👍👍
@SmartBunnyTuts
@SmartBunnyTuts 6 жыл бұрын
Thanks a lot........Finally I Understand this High Score thank you Sooo much!
@divsyntax9720
@divsyntax9720 3 жыл бұрын
These "Playerprefs" remind me of Android "SharedPrefs" and just as easy. Thanks! :)
@TacticsTv
@TacticsTv 7 жыл бұрын
Nice video 🔥👌
@still_adrian
@still_adrian 7 жыл бұрын
The end I looked at 5 times because I thought that I was dreaming.
@Steve18795
@Steve18795 3 жыл бұрын
Legend has it that he later closed brackeys and started his professional dancer career 😂
@tadeuvi
@tadeuvi 6 жыл бұрын
I love this man
@bip901
@bip901 7 жыл бұрын
1:36 both Unity wiki and this little popup box says that the max number *is* INCLUSIVE...
@loliqueen9076
@loliqueen9076 7 жыл бұрын
Liked for that ending.
@aryamansingh8826
@aryamansingh8826 6 жыл бұрын
exactly what I was looking for
@BlurryStarrs
@BlurryStarrs 9 ай бұрын
How would you make a best time? Basically a countdown timer in the game, and then the fastest 3 scores on the game over menu. Can't find it anywhere on youtube. Love Brackeys tho, he almost always has the info I need!
@hahahpizza
@hahahpizza 7 жыл бұрын
This is so neat and simple, thanks. One thing I wanna ask is, What if I want the prefix before the text like this: High Score: "the PlayerPrefs value".
@zinebhalwi7510
@zinebhalwi7510 7 жыл бұрын
then you should put this code inside the for function: PlayerPrefs.SetInt ("HightScore", number); highscore.text = "Hight score : " + number;
@rakharuan
@rakharuan 4 жыл бұрын
@@zinebhalwi7510 and .ToString()
@lucaazogamer5511
@lucaazogamer5511 4 жыл бұрын
Thank you!
@GuilhermeAkuro
@GuilhermeAkuro 7 жыл бұрын
great video thx
@MoshiGamePlay
@MoshiGamePlay 6 жыл бұрын
Great tutorial! How would i go about creating a top 10 personal highscore instead of just 1. I also struggle to carry over my current game score to my game over screen. Thanful for any sort of guidance.
@echilateral4497
@echilateral4497 6 жыл бұрын
NullReferenceException: Object reference not set to an instance of an object textscript.Start () (at Assets/scripts/textscript.cs:13) :(
@anotherrandominternetperso4994
@anotherrandominternetperso4994 4 жыл бұрын
I know, you have already fixed that, but the answer is just for anyone else, who has this problem and is scrolling through the comments: An NullReferenceException means, that your you havn´t referenced your Gameobject in the Inspector. In this case, you just have to drag the Text Object into the slot in your skript. This is shown in 1:15 of this video. Have a nice day!
@dp6501
@dp6501 7 жыл бұрын
Thank You very much, you helped me a lot
@ZeroSleap
@ZeroSleap 6 жыл бұрын
Question,isn't it more convenient in our case(handling text objects,as strings) to use .GetString instead of .GetInt?
@narf-rule1
@narf-rule1 7 жыл бұрын
But I like living on the edge so I’ll type delete all. Hahahahaha you are the best! Very helpful.
@gamingstudio83
@gamingstudio83 6 жыл бұрын
Thinks Brackeys I worked for me and i learned something.
@curt88469
@curt88469 7 жыл бұрын
thx for shared!
@robinchmelik2522
@robinchmelik2522 7 жыл бұрын
Thank you very much. Save a lot of time...
@omarjribi5687
@omarjribi5687 6 жыл бұрын
thanks brackeys , would you please make a tutorial about leaderboard !
@tesil123
@tesil123 7 жыл бұрын
As always video! Could you make one about damage text popup? Have the damage popup when you hit the enemy in the tower defense game.
@adamsabdulmajid9543
@adamsabdulmajid9543 7 жыл бұрын
you are the best...thanks
@badbuilding395
@badbuilding395 7 жыл бұрын
Hey, when multiplayer game is up to the public, and a lot of people host a game, will the dev have to pay more?
@philunityunreal7228
@philunityunreal7228 5 жыл бұрын
I have a question about "PlayerPrefs" . I lean from this video that it is skillfull for the highscore by saving int, float, etc by using PlayerPref.SetInt, PlayerPref.SetFloat, etc. Is it a way to do the same for an array? (int[ ] tab) Thanks for your attention and greetings.
@PACO6093
@PACO6093 7 жыл бұрын
Hi there!, how can i link the score data from your video "SCORE & UI - How to make a Video Game in Unity (E07)" instead of the RollDice?
@Muaaz-26
@Muaaz-26 3 жыл бұрын
same thing im tryna do
@vulpesvulpes1557
@vulpesvulpes1557 7 жыл бұрын
Hi Brackeys can you make video about character animation(walking aiming running) and weapon menu selection Pls. Sorry for bad English
@Victor-oo4ux
@Victor-oo4ux 7 жыл бұрын
Look his RPG series. :D Here he shows almost all
@periklisvairaktaridis132
@periklisvairaktaridis132 6 жыл бұрын
Please make a video about saving stats using JSON
The Easiest Way to Make a High Score in Unity
6:34
BMo
Рет қаралды 31 М.
HOW TO PLAYTEST!
11:15
Brackeys
Рет қаралды 222 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
PAUSE MENU in Unity
12:13
Brackeys
Рет қаралды 1 МЛН
I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 7 МЛН
How To Make UIs without frustration | Unity Beginner Tutorial
16:58
This is GameDev
Рет қаралды 38 М.
How to MAKE YOUR GAME LOOK GOOD!
13:02
Brackeys
Рет қаралды 605 М.
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 1,6 МЛН
How to make a LOADING BAR in Unity
11:25
Brackeys
Рет қаралды 750 М.
9 EASY Steps to create a multiplayer game with Unity & Photon - Tutorial
15:51
How to make a Dialogue System in Unity
16:19
Brackeys
Рет қаралды 943 М.
How to Keep Score in Unity Using Unity Events and Text Mesh Pro
9:31