How to make a Dodge The Blocks game (Livestream) - Unity Tutorial
Vložit
- čas přidán 31. 05. 2024
- This is a recording of the first ever livestream. We make a Dodge-The-Falling-Blocks style game and answer a bunch of questions.
❤️ Donate: www.paypal.com/donate/?hosted...
● Download Project on GitHub: github.com/Brackeys/Dodge-The...
····················································································
♥ Subscribe: bit.ly/1kMekJV
● Website: brackeys.com/
● Facebook: / brackeys
● Twitter: / brackeystweet
····················································································
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
····················································································
♪ Intro Music by Brackeys
POV: You got bored in lockdown 2020 so started watching Brackeys, completed his beginner tutorials and remembered he mentioned a random block spawner which you are now trying to combine to your beginner game
Yo you know the blockathon game? I'm trying do that lmaooo
wow how did you know!!!
Well I was watching how to destroy an object,
@Jakob Alfred Scam Alert!!!!!
who are you and why do you know this >.>
23:24 is about where he starts to do the spawning
Game Fusion thx
Will it work with 3d? Trying to get started and am making a 3d game.
@@robloxfanboy86 with some minor changes, yes. That's what im doing too, so good luck :)
@@leosabou6975 did it work?
@@jello1743 didn't finish it(as a matter of being 100% finessed), but yes, it works fine, but it is a lot a lot a lot of work. So good luck y'all
Quality of your videos is really good. When i was learning all the things with unity i watched a LOT of tutorials but nothing was good enough.. i watch your content from start of the survival game series and i have to say - thanks, now i have something to do for every day 10 hours non-stop. my life would be boring without you!
Wow, I'm so glad you like them! :D
Ikr
I'm mixing blockthon with this and I made the spawner run from player and I tried to play without delay for a joke and the result was so hilarious I made a screenshot
I agree!
I know countless of people have already asked for this, but a video about coroutines would be something i think that a lot of beginners would really acknowledge, I myself had a very hard time grasping it.
Love your channel and all of your videos :)
Time between spawns seems like a good opportunity to use modulus. Love the tutorials!
Great tutorial as always, sir. Thank you. Love following these and then going off on my own direction (adding different coloured / sized blocks for example). Great stuff. 👍
"So now... time. What is time? I don't know, but we're going to change it" - Brackeys, 2016
when did he say that
I have completed your " How to make make a video Game " that's awesome. you are teaching us as a full basic
Brackeys is the best source for Unity tutorials
It's 2019 right now...STILL GOOD CONTENT I CAN WATCH THIS OVER AND OVER AGAIN...HOOOOW ARE YOU DOING THIS????
He's doing it the way he's showing you how to do it. If you (pretty much) exactly copy what he does, you have plagiarism, and (pretty much) exactly what he made.
@Brackeys you have nice tutorials here.I am glad that i found this here after i finished with Unity documentation.It is help me a lot .By the way ,i am 19 years old too :D
Same here i m also 19 years old. wait this comment is a 2years old wtf its mean your age is now 21 its cool
I am 12, lol
you are absolutely great tutor. i like the way you teach and quality of your video is also outstanding.
great, really going to help me with a project at the moment. Thanks!
This is really helpfull and I'm waiting for more with excitedly
Hello Brackey i love your videos and i always watch and enjoy all the videos you made thankx for the the good videos it helps me a lot in my project😍😍😍😍😍
Hey awesome video. I rarely watch lengthy videos from start to finish AND you kept it intereting :) . Just wondering if we could use Invoke instead of coroutines? would be easier right?
for people who had trouble with messed up physics after fixedupdate slow down...hardcoding the fixedupdate to .02 instead of *slowness fixes it.
I was following the basic tutorial and this tutorial to make a 3D version of this game, and had trouble with this part.
😊 Now I can continue with this after scratching my head for 1 day .
you are best than among other on youtube.
Hey Brackeys! I really enjoyed your livestreaming format. Just wondering, what did you use to stream/record this, and what do you use for your other videos?
To stream Twitch and to record probably OBS!
Bruh you can see it down in the taskbar. It's called Open Broadcaster Software Studio. Google is your friend.
Sir, you are great.. you have made me a Game Developer
I love his smile. That's prolly the only reason why I don't get bored watching his videos. May be, who knows if I end up creating the next candy crush, all credits goes to his smile. Thanks brackeys. By the way, he's of my age.
This was made 3 years ago, so I don't think he is the same age now.
Brackeys, you are the Bob Ross of game development
I wish this had one like for every 20 watchers of bob Ross
Short Question: What is the Font´s Name that you are using in Visual Studio?
The error in your console that you talk about at 9:30 I think can be fixed by setting the layout to default and then putting all your windows back where you had them
Great tutorial thanks a lot!
nice tutorial. Thank you so much.
Nice man! Thanks for the video
You're welcome :)
Brackeys I'm gonna try my best and make this game and then add some aspects like the timer you mentioned, would be pretty awesome! By any chance would you make a video of how to add a mobile input like moving the block and stuff? that would be awesome!
you are 19 what the hell. good job
hes 19!? im 18 and all i can do is make a button in unity lol. oh btw i learning programming in school
Hes now 22.
im 12
@@tastybass9050 me too
Hahah I'm 13 now
Great video thanks man
Loved this tutorial, but i have one question. How would you be able to make the blocks random sprites. Like it is a red block then next wave it is a blue block and it is a random sprite every time.
Du reddede lige min 3.g programmerings eksamen
im combining this and CUBETHON into 1 game where u can choose level mode or endless runner mode. hope it works!
I've spent the last week doing the same thing. It has been a bit of a headache
I'm planning to do the same
Cool!!!!
yes
Make a tutorial and ask Brackeys to put it up.
Great work👍
41:51
had the same issue, u saved my ass!
@@cancihancihan god im glad - i couldnt find a comment on it so i figured id leave one i case anyone also struggled, cuz i usually look in comments to fix stuff
My god bro, thank you so much for posting this comment`, you saved me a headache
thanks dude you're the best
very very very good for beginners
Quaternion is how you keep track of an object's rotation in a 3d space. So like you have x,y,z for positioning in pace a quaternion has I, J, K multiplied by the dimension which in our case is 3 which gets you xK, -K, K etc. The thing that makes it tricky is there's a specific path the calculation must take to calculate rotation so that the sum of all number systems changes in correlation to the change of one number system such as -J. MaThs Is Da FunnEst...........
Thanks for video :) Good game good job.!
Very nice, quick question, how to make the blocks fall slower and separately
Hey can you try for making a third person game because i followed all your tutorials and really they are outstanding!
Awesome! How did you make mono-develop auto complete you code? (the dropdown)
Thank you Asbjørn . This was the first tutorial I watched of Game Development. I have use this project and created a little game. It is not great. Thought of sharing with the original creator. Thank you so much for giving a direction to all the creative minds.
This is the game link.
www.newgrounds.com/portal/view/726545
Did anyone else gets feeling of satisfaction when code works
Thank You for explaining it so well! 1 question, how can we tweak in a way that the block does not miss out from the same position as the previous one?
Just make an variable that stores the number of the previously generated number and check in a while statment to see if it is the same as before. You can use if instead of while as it is quite rare for the same number to appear three times.
will you continue the survival series PLEASE after the fps i wanna know how to make it but there is no good tutorials please
I usually work in python, but imho you could have used % to determine the time spawn, just like:
time % 2 == 0
That way every 2, 4, 6... seconds blocks will spawn. Should also use toInt or sth, cos Time.time probably is a float.
Just thank you sir.
You Are Perfect Man
Hey really great videos! I've been following along and noticed that whenever my character gets hit a few times in a row, the game suddenly becomes really slow and eventually the blocks get locked at the top and stop dropping. Any ideas as to why this might be happening?
When I build the Game exactly like you, and add more functions like menu, skins, many more levels,... , can I submit it to Steam Greenlight?
SCUFLEX It's published under the MIT Lincense, so you can use it for whatever.
SCUFLEX how u do that can u make a tutorial showing adding main menu, score and sounds to this project for Android deployment plz
He has tuts on his channel for all those things
Hello there, I might have a question on how you make a wave Counter. I've watched the Videos on How to make a Game but couldn't add the Score Ui to this particular Game.
Please Help me out
Love your videos. :)
19:17 is where he starts with the blocks
I think you should have made the player going faster as the blocks fall faster?
This is 'Falling' blocks, so the action is taking place on the Y axis, top to bottom. The camera needs to be pulled 'back' on the Z axis, not 'up' as though you're looking down on it as you actually are.
I'm coming from the other dodge the blocks tutorial where it's 3d and you're moving forward on the Z, so had to make the mental shift there.
"bases of every nice thing is a squre"
omg why am i laughing so hard?!
Hey i love all ur videos that i have watched but i m making this game by following all ur steps but i want to add main menu and a score board to this game, can u help me with that i dont understand that thing in ur other video part 10. can u make a tutorial on adding those things to this game, also adding music and sounds. It would be a great help😊.
is there a specific reason why you didn't use InvokeRepeating("SpawnBlocks", 2f, 1f) in the start function itself, instead of writing all those lines in update?
I Love your Videos
If i earn something from this games that I'll be making, I promise, i'd donate the entire amount to this guy. I simply love him, his content and his smile.
don't exaggerate man ;P
hey, i tried adding an image for the background but the blocks that spawn, get stuck at the top of my background image and they simply just keep piling up at the top on the image until the character hits one of the block.
any suggestions on how to fix this issue??
Thanks fir answering my question withe the languages! I didn't mean the programming languages ;)
for
With the red color I thought this was a video about dodging youtube's shitty guidelines at first.
savage
you are so amzing i made a game of space ship but i use youir method's
Hey, you should do livestreams of making games, like that people can ask questions live and learn step by step
.... you obviously dont follow him do you, he has said like 2 years ago that he has stopped uploading?
Just wondering, when will you upload this week's Multiplayer FPS video?
That will be up Sunday! :)
That stream was great! Thank you for that :D
cant you change it to saturday? :P i want to learn before school xD :P if not its ok ;(
Please advice. How do i move the block along with my finger movement, only when i am touching on it? I do not want to move the block automatically to the position of touch in the screen. I am using unityEngine.Touch.
Anyone know why when the blocks spawn they aren't visible despite them being infront of the background on the order layer and show up in the scene window but not the game window?
I also see the blocks collide with the player in the scene window
Edit : I fixed it the z position on the spawn was set to the same of the Main Camera
cheers. i was running into that as well. didnt check the z values.
5 years later
THANK YOU SO MUCH MATE
if you want the procedural generation part of it then you should go to 22:00
thank you so much i did not expect that
@@GabrielCarvv You're welcome. I had to hunt so I thought I might save others some time.
Thank you kind stranger
@@duckguy1386 no problem, grateful stranger.
Doesn't the Garbage Collector get filled quickly if you destroy objects? it would be better to reuse the same objects by pooling them
when I apply the Ridigidbody 2D the is no option of In Kinematic. And when I turn the gravity to zero .. player sprite don't move .. even if the player has the script to move it. I there any solution for this?
I've had this problem too and I found a solution; you must change the body type to kinematic. (Body Type is the top setting in Rigidbody 2D), the default setting is dynamic or static. I hope I could help :-)
34:01 Wouldn't taking the modulus of Time.time and timeToSpawn also work?
was the Livestream on CZcams or do you have Twitch or something like that? :)
Its twitch. He also says it in the video :D
Love it
When do you do live streaming?
what if you wanted an object that was created from the rnd to face the player on spawn no matter where on screen they where, how would you do that.
I have a question. You know how Visual Studio highlights methods and gives you a list of possible things based on what you're typing and can auto complete stuff. Well, for some reason, mine doesn't show me any of the unity Engine methods like yours does. Anything to do with unity is just white text, and it doesn't help with auto correcting or anything. (All the C# standard stuff is highlighted like float and int and can be auto completed still, just nothing to do with unity). I uninstalled, then reinstalled the latest version of both, but still nothing. The codes still work when I type them, it's just making things harder on me than I feel like they need to be. Does anyone know what's going on?
did u create the script using add component? if u use it using add component it will be like that maybe just try to create the script in the asset right click and create scripts(sry my english is bad) sry if it doesnt work
why does your visual studios have words with certain colors and autofill. my visual studios doesnt. can you pls tell me how to fix it?
thanks!
how do you add a score keeper and a gamer over menu pop up
@Brackeys Hey, quick question! Would you be able to show us how to make that time counter (score keeper) element you mentioned near the end? I was able to create a counter that shows how long the player survives, but I don't know how to create a high score/best score as well. It would be cool to have the best score saved so the player can see his efforts instead of a timer that resets every time the game starts.
Thanks!
You need to save it to a file, which requires some complicated code.
Search on google on how to save game progress.
This is where he starts with working on the code for the block spawning: 19:22
Will the block randomly spawning thing work in 3d?
do room tour please!!
how can i make the road infinite length when the object is moving forward?
My block spanner doesn't work :(
hello, im at 16:50 and i have the same code but I'm getting NullReferenceException. i fixed the problem by making rb public and dragging the rigidbody in myself meaning its having trouble getting the component on start and i was wondering if anyone would know how to fix this.
32:19 I tried to play it like that, rain of blocks runs over your screen xD
How would i make only one spawn instead of 4? I tried changing the i = 0 to i = 4 and it just made one spawn in the same place. Please help
Try replacing "!=" with "==" in "if (randomIndex != i)" i think.
Thanks! Helped a lot
Mu Unity Is Kinematic was not there but you have? how to see it?
like your tutorial,your fan from tunisia
What theme are you using in Visual Studio? Or is it custom?
You can settings it
- Open Visual Studio
Find Tools, it on top of the screen...
- Tools - Options - General - Color Theme
There is 4 Type of theme
-Dark/Light/Blue/Blue (Extra Contrast)
Hope it helps you
I user this video for my own game and want to make that if a block spawns IT cant spawn that spawn point the next spawn wave. Please help me i tryed a lot of thing... Pls help me
Best part of this video lol 29:25
what version of unity are you using
Brackeys you will probably not see this but instead of doing rb = GetComponent(); can't you just make the variable public and attach the rigidbody 2d in the editor. another thing for some reason my blocks are spawning and are visible in the hierarchy but aren't visible in-game
Can anyone help me ? I have a 3d game with cubes and stuff... And i added this tutorial into my game but when the game starts the blocks are keep spawning in each other. Can anyone help me?
Can we add more than one type of block
Can these be still used on Unity 2019-2020? It is outdated?
player not working in mobile and also not work getmousebutttondown(0). so can you please tell me what to do for player should be work in mobile.thank you