The Easiest Way to Make a High Score in Unity

  Рет қаралды 30,954

BMo

BMo

Күн бұрын

Пікірлер: 32
@mandamoon9149
@mandamoon9149 2 жыл бұрын
Never knew this could be so simple, just a few lines of code for such a valuable feature. Always learning the most from Bmo
@faiazbinnesar2937
@faiazbinnesar2937 2 жыл бұрын
Man, you are like my guru. Recently I've been following all your vids and this is exactly what I needed now. Thanks!
@basedlegit
@basedlegit Ай бұрын
thank you so much!!!! It's so simple!!
@christio02
@christio02 Жыл бұрын
This was really simple and easy to understand! Thanks!
@sogyshorts5662
@sogyshorts5662 2 жыл бұрын
Amazing BMo tutorial, it definitely helps me, for my game...
@VladaPersonal
@VladaPersonal 2 жыл бұрын
First! Keep up the uploads!
@RuthlessMetalYT
@RuthlessMetalYT 9 ай бұрын
I make an asteroids game does this work the same way? I use a score and not collecting coins. I don't understand anything. :S
@BlanimeStudios
@BlanimeStudios Жыл бұрын
How do you get this to show up in the next sceene being a leaderboard?
@vincentproud6589
@vincentproud6589 Жыл бұрын
Keep seeing tutorials for PlayerPrefs, but don't these reset whenever there's an update and are also very easy to edit?
@jesperingo
@jesperingo Жыл бұрын
Thamk you for this easy tutorial! Love you man
@fredsurj9687
@fredsurj9687 2 жыл бұрын
It works, thanks for the lesson
@Pflaumenpflucker
@Pflaumenpflucker 2 жыл бұрын
Best Tutorial EVVVVVVVVVVVVVVVVVVER!!! Thank you
@dkordy
@dkordy 2 жыл бұрын
hello, can you tell me how to add -score- to highscore through the code, but not only when the score is higher than the highscore! I made a game so that on main menu shows a high score - and when I start the game, my score is always reset to zero. and I want that when I collect the scores during the game, they are automatically added to the highscore from the main menu. I can't possibly set it up in the code to do it because none of you on you tube explained something like that. my highscore is raised when my score is greater than highscore. but I don't need that!
@sann3528
@sann3528 5 ай бұрын
Thanks for the tutorial. How can I reset the high score??
@Whimery
@Whimery 8 ай бұрын
How do you make it dynamic
@Stompin40
@Stompin40 2 жыл бұрын
Oh wow this was really interesting.
@brady9621
@brady9621 Жыл бұрын
Serializefeild textmeshprogui highsore text array size can not be specified and force unity to serialize private feild
@ShameTV
@ShameTV 2 жыл бұрын
Can you do some simple Objective system? Like you collect some coins and then next objective pop out and you have to walk to a door in 2D will be fine... idk how to make it through bool or something? cheers
@mshroom6391
@mshroom6391 Жыл бұрын
Hello i have little problem that i cant choose any text with CameManager script Can someone help?
@zippsterstudios
@zippsterstudios 2 жыл бұрын
Newb question! I have never seen that syntax that you are using here where you are using += and -= to a function. I suppose it does not help that I have not experimented with events yet in Unity (no idea what these are yet!).
@CaptainAarav
@CaptainAarav Ай бұрын
not related but when my score goes over 10 it resets to 1 and dosent change. please someone help
@BMoDev
@BMoDev Ай бұрын
What's your code look like?
@_Cobay
@_Cobay Жыл бұрын
very helpful
@aledario18
@aledario18 Жыл бұрын
Does it work with Builds?
@13579fastWhach223
@13579fastWhach223 2 жыл бұрын
Thanks a lot
@williamrowans3968
@williamrowans3968 2 жыл бұрын
Hell yeah!!!!!!! Thank you so much! Subscribe, like and notifications on!!!!
@OmeedNOuhadi
@OmeedNOuhadi Жыл бұрын
👍👍👍
@matanmc
@matanmc Ай бұрын
man yapped straight 2 mins start from here 2:00
@lucutes2936
@lucutes2936 2 жыл бұрын
a
@chicken7sandwich228
@chicken7sandwich228 Жыл бұрын
i copied exactly as the tutorial said but when i finished it, it stayed at 0... i have: public void addscore (int scoretoadd) { if (birds.birdisalive == 1) { playerscore = playerscore + scoretoadd; Scoretext.text = playerscore.ToString(); popsfx.Play(); } in another script its basically when i pass the trigger is addscore(1); And that adds my score up no worries. I also have from this tutorial: void Checkhighscore() { if (playerscore > PlayerPrefs.GetInt("Highscore: ", 0 )) { PlayerPrefs.SetInt("Highscore: ", playerscore); } } void UpdateHighScoreText() { HighscoreText.text = $"Highscore: {PlayerPrefs.GetInt("Highscore: ", playerscore)}"; } i fed the text object into the script component. it all went smooth but yeah i dont know.
@homeofgamesmeme5242
@homeofgamesmeme5242 6 ай бұрын
same issue!!! the script working fine and it is storing the highscore in the back side but the highscore text "0" stays the same....can you help?
@mrblibbdev
@mrblibbdev 2 ай бұрын
is the value a int??
How To DAMAGE Enemies in Unity
9:19
BMo
Рет қаралды 46 М.
The right way to pause a game in Unity
9:09
Game Dev Beginner
Рет қаралды 64 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
How to make a HIGH SCORE in Unity
8:48
Brackeys
Рет қаралды 424 М.
Flexible LOOT SYSTEM in Unity with Random Drop Rates
13:24
Better Jumping in Unity With Four Lines of Code
12:47
Board To Bits Games
Рет қаралды 826 М.
GAME OVER Menu In Unity Tutorial
14:41
BMo
Рет қаралды 28 М.
Much bigger simulation, AIs learn Phalanx
29:13
Pezzza's Work
Рет қаралды 2,9 МЛН
4 Ways to Code 2D Player Movement in Unity (You SHOULD know these!)
16:24
Lost Relic Games
Рет қаралды 173 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 985 М.
A Great Way To Setup POWERUPS In Your Unity Game
13:43
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.