How to make a Video Game in Unity - COLLISION (E05)

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 3,8 тыс.

  • @blyatman3798
    @blyatman3798 6 лет назад +3850

    Anyone notice how as the series goes on there is less and less views because people give up but great videos I love them

    • @jonatan01i
      @jonatan01i 6 лет назад +168

      It's like with any other series.

    • @ketsuenightcore
      @ketsuenightcore 5 лет назад +51

      I don't even know why I'm following this series

    • @whimsical2223
      @whimsical2223 5 лет назад +38

      if you a have a bit of programming experince this is actually that hard

    • @RoboEpic
      @RoboEpic 5 лет назад +7

      that's what i noticed

    • @otfast2228
      @otfast2228 5 лет назад +35

      that'ts a big mistake don't give up! You need to have fun programming.

  • @davidslivnyak4866
    @davidslivnyak4866 4 года назад +1112

    Hope this series booms during quarantine!

    • @chickeninabox
      @chickeninabox 4 года назад +29

      It did.

    • @aw1lt
      @aw1lt 4 года назад +6

      mhm, it definateley did

    • @ImmortalRemy
      @ImmortalRemy 4 года назад +19

      I was like hmm I should really start lerning how to use unity.. TIME FOR LATE NIGHT CODING BOI'S!

    • @oakleyblade9400
      @oakleyblade9400 4 года назад +2

      yah... i've gotten here in .5 days cuz of all the time on my hands!

    • @IsaacMcC
      @IsaacMcC 4 года назад +1

      did u get this to work, I haven't been able to and I'm totally stuck

  • @MKx2_05
    @MKx2_05 3 года назад +14

    anyone realise that all the ads he does are to help the comunity not for personal gain
    this is how to distinguish good content creators from the bad ones.
    true legend.

  • @tylerwalking392
    @tylerwalking392 5 лет назад +466

    Hey, anyone who sees this and you're thinking about giving up, DON'T. You are halfway through and it gets easier and more fun from here. I promise all of the hard work pays off.

    • @ZaymsMarbleRaces
      @ZaymsMarbleRaces 3 года назад +24

      I saw this at the perfect time ;)

    • @simeonstoilov9576
      @simeonstoilov9576 3 года назад +1

      omg this takes a lot of time

    • @mr.mystical9776
      @mr.mystical9776 3 года назад +2

      Yeah, your right, and when you finish here til now (like i am) i kinda figured how to write some code for myself!

    • @latrys886
      @latrys886 3 года назад +3

      @@mr.mystical9776 Omg thank you so much. I want to end but you gave me the power to do it and i did it

    • @mr.mystical9776
      @mr.mystical9776 3 года назад +1

      @@latrys886 Your welcome!

  • @Eric_Shaun
    @Eric_Shaun 4 года назад +92

    After thinking and being "scared" of starting learning coding and trying to create a game, I started yesterday and downloaded unity - and so far i am having a blast and thats thanks to you, brackeys
    wonderful tutorials so far, great explenations, and perfect "from scratch" tutorial/lessons.
    I have done a Tutorial, ,besides the "microgame" from unity, but that was way to "specialized" and adding to an existing project, which still did not cover the real basics of unity.
    much love!

    • @ok5183
      @ok5183 3 года назад +1

      what did you do

    • @uliveulearnandregret
      @uliveulearnandregret 3 года назад +1

      @@ok5183 true what did he do? 🤷‍♂we will never know

  • @twwister98
    @twwister98 4 года назад +53

    Just want to say a shout out for Brackeys being so happy every video! It's cool to see someone so happy about passing on their skills to others! #Hero

  • @CobbleTrash
    @CobbleTrash 6 лет назад +34

    You look like the happiest man I’ve ever seen all the time, I love it

  • @CurbStompCity
    @CurbStompCity 7 лет назад +93

    I just want to quickly comment whilst in the middle of this playlist. Attempting coding has always been a daunting task, but your videos explain everything really well and it is slowly becoming a lot more clearer to me. Thanks. :)

  • @kailange-dei7785
    @kailange-dei7785 4 года назад +97

    for anyone having this problem if the error shows up and says null reference exception that mean that you have to drag player movement into the collision scrip that's what worked for me. the part I missed was at 7:03

    • @TheNewYouTubeHandlesAreDumb
      @TheNewYouTubeHandlesAreDumb 4 года назад +3

      Ahaaaa thank you

    • @shakedcohen5036
      @shakedcohen5036 4 года назад +1

      thx!!

    • @thesunshineart9876
      @thesunshineart9876 4 года назад +1

      kai Lange-dei thanks brooooo I can’t thank you enough

    • @BreeingIan
      @BreeingIan 4 года назад +3

      Thanks so much I almost gave up until I saw this. So frustrating but incredibly rewarding once you finally figure out what's wrong

    • @anexotikbakka2342
      @anexotikbakka2342 4 года назад +2

      @@BreeingIan hey pls help can u elaborate more im rly smol brain so cudnt understadn hv same error tho

  • @ralf6756
    @ralf6756 5 лет назад +5

    he explains things fast into the point directly and keeps everything simple , can't imagine something better

  • @dratylapio
    @dratylapio 4 года назад +7

    this mans intros are the happiest things ive seen in my entire life

  • @brucelee7782
    @brucelee7782 3 года назад +4

    I like how he explains things step by step. I mean REALLY step by step. For exmaple I didn't what the tag was for in other tutorials, they just glanced over it but this guy really explains things. Now I have a better solid understanding of unity.

  • @pinkiepurplez
    @pinkiepurplez 4 года назад +7

    Good job to those who have kept going through the tutorial. You are a true champ, and I hope to see you watch the next one. Don't lose motivation.

  • @alessio5713
    @alessio5713 3 года назад +4

    i love how the videos are short and straight to the point like small baby steps

  • @eeshionglim6360
    @eeshionglim6360 4 года назад +27

    Hi Guys,
    For those player who are unable to stop after the collision, you may refer to 5:43.
    Check the tag for all of the "obstacle" whether is it the same on your scripts.
    Hope this might help you guys!
    Have a nice day :)

    • @retrofreak3255
      @retrofreak3255 3 года назад +1

      I still don't get my object to stop please help :(

    • @ersinfalan
      @ersinfalan 2 года назад +1

      you saved my day..

    • @azetalkaazetalka5849
      @azetalkaazetalka5849 2 года назад

      ♥♥♥

    • @Pogo_TW
      @Pogo_TW 2 года назад

      Don't know why the tag created previously disappeared. Thanks so much anyway!

  • @Pozivnoy_Haski
    @Pozivnoy_Haski 3 года назад +35

    I'm from Ukrain and don't speak English but watching these videos I'm was amazed because I understood him very good, and I'm so grateful for your work (11 videos "How to make a Video Game"). Thank you man!!

    • @wyxef
      @wyxef 3 года назад +3

      Hi Am Russia Man XD

    • @prime_fn228
      @prime_fn228 3 года назад +2

      сало сало сало Українске сало

    • @thomasviglione2362
      @thomasviglione2362 3 года назад

    • @digviaysingh480
      @digviaysingh480 3 года назад

      Then how did you wrote this comment..?

    • @Pozivnoy_Haski
      @Pozivnoy_Haski 3 года назад

      @@digviaysingh480 I wrote this comment whith "Google translate" and I'm know English, but some bad for free understand these videos.

  • @thilosaur2169
    @thilosaur2169 4 года назад +6

    I've been using this tutorial to make my first ever game in unity in like one night and its going great!

  • @aprilea81
    @aprilea81 3 года назад +1

    Got unity 2 days ago and Brackeys is making it easy to learn c # and game design. thx Brackeys

  • @interflashz
    @interflashz 8 лет назад +195

    Please make longer episodes when you come back from your vacation, I hope you have fun!

    • @AnasMations
      @AnasMations 8 лет назад +4

      Inter Flash yeah it's too short

    • @RitobanRoyChowdhury
      @RitobanRoyChowdhury 8 лет назад +5

      Longer and Advanced tutorials, Please!!

    • @RitobanRoyChowdhury
      @RitobanRoyChowdhury 8 лет назад +4

      I never said to get rid of these short ones, I just said I'd like to see longer and more advanced ones. Maybe some kind of procedural (dungeon, world, quest, etc) generation?

    • @RBTGamming
      @RBTGamming 8 лет назад +8

      it's for people who are scared by longer videos, like me. I like this piece meal method. I believe have other videos that are longer (not sure though).

    • @AnasMations
      @AnasMations 8 лет назад +1

      Royal Tyger's Media but he makes one video of this series once per week so the solution is to make more videos or make the video longer (sorry for my bad English)

  • @vladymartinez1232
    @vladymartinez1232 5 лет назад +319

    I just discovered a world i love and i didnt know, i guess i will have to change my major😂, btw im doing everything exactly as he is doing it but i have so many different ideas for it but i dont know how to execute them, i guess i have to stick to what he is doing till i actually learn

    • @on3x903
      @on3x903 5 лет назад +48

      Thats what i am doing. I think we need to just copy him, and after learning it, we can advance our self, because then we have a lot more experience we can use to put something together, tyhen it gets easier to watch harder turtoials

    • @suhailseedat523
      @suhailseedat523 5 лет назад +9

      Keep on moving bro and you'll succeed

    • @TecBratGames
      @TecBratGames 5 лет назад +9

      Duplicate a scene to give yourself a playground of sorts and hack away at it. Google whatever you don't know. Then, come back to Brackeys for more of these amazing vids!

    • @desirocker9099
      @desirocker9099 5 лет назад +2

      check out Unity c# documentation

    • @taem3542
      @taem3542 4 года назад +2

      I am also doing this I have an idea to make a sorta 3d version on the no internet dinosaur game it's likely been done already but I just want to do it myself to share with friends

  • @Brilliant_Target
    @Brilliant_Target 10 месяцев назад +1

    Hi man, im currently watching your videos and.. eventho it's been 7 years from posting I really hope this message will reach you. First of all thank you. Thank you so much for helping me making my dream true. I will make sure to show you my gratitude by supporting you on patreon as soon as I can afford it. Second, your videos are so precise, so perfectly described that even a noob like me understand everything perfectly. Thank you so so much!

  • @skypirate97
    @skypirate97 4 года назад +341

    When you spell Obstacle "Obstacal" accidentally in the code and it takes you half an hour to figure out that fault:
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

    • @THEspindoctor84
      @THEspindoctor84 4 года назад +5

      hey, I bet that moment when you finally realized your mistake felt GREAT!

    • @emoshimo9332
      @emoshimo9332 4 года назад +1

      @@THEspindoctor84 i started this tutorial series 2 days ago and dont have any other coding exp is it normal that i dont understand the codes but just copying them seeing results for now

    • @THEspindoctor84
      @THEspindoctor84 4 года назад +9

      @@emoshimo9332 I'm not an expert, but I would definitely say that that is normal. But starting here seems a little bit advanced for someone with literally no coding experience. Its generally not good to just copy code and see the result, without understanding the concepts. I would start with a nice long FreeCodeCamp video, like this one on C#. ruclips.net/video/GhQdlIFylQ8/видео.html
      Once you watch that, you will understand some of the basic syntax, and this might make more sense. I also recommend books, since I believe they tend to explain concepts better than videos. I am currently using "Learning C# by Developing Games With Unity 2020" by Harrison Ferrone. Its very good for someone with little or no coding experience.

    • @emoshimo9332
      @emoshimo9332 4 года назад +4

      @@THEspindoctor84 thanks sir that will help a lot i really appreciate your time and effort i can say you made my day :)

    • @IbraHere
      @IbraHere 4 года назад +1

      Lmao

  • @muhammadrizwanhameed2223
    @muhammadrizwanhameed2223 4 года назад +5

    This series is becoming Addicitive!

  • @ashsureshkumar9150
    @ashsureshkumar9150 4 года назад +1

    Dude you saved my life. I wanted to make games and stumbled upon this video I started and downloaded everything. But when it came to the first video i couldn't make the camera face the ground so i gave up and deleted unity. but 3 days later i downloaded it again an came back to your channel. And i finally figured it out. I just had to rotate it bro. And i'm still going on this and Thank you bro you're the best. ;)

  • @kaperfairt2076
    @kaperfairt2076 4 года назад +3

    Thanks. This is the tutorial series i've been looking for a long time. You explain everything clearly and smoothly. You've earned a subscriber.

  • @_zerohour_
    @_zerohour_ 2 года назад +14

    This is my third time coming back to Unity, and honestly, I'm astonished at how simple this stuff is in hindsight. I have experience in the kids coding site called Scratch, and frankly it's making this so much easier to digest. I mean, I really get this stuff, and I'm feeling so confident in it so far!! I think the best part for me to, is I have an understanding I don't know that much, and due to this, I got a good grasp on how big my scope is... But! I'm confident I can do something that'll be just fine! I'm just so happy for this tutorial, thank you, Brackeys!!!

    • @masterjokerx549
      @masterjokerx549 Год назад

      Did everything come out well for you??? Because it didn’t for me it had so many problems in this part and now i just messed up all the old parts 😢

    • @_zerohour_
      @_zerohour_ Год назад

      @@masterjokerx549 What's the problems you had? I can do my best to help!

    • @masterjokerx549
      @masterjokerx549 Год назад

      @@_zerohour_ omg you answered even tho your comment is 6 months old

    • @masterjokerx549
      @masterjokerx549 Год назад

      @@_zerohour_ i kind of figured out the problem and it was that i don’t have a dotnet which i don’t know what that is since I’m new and after downloading multiple dotnets in unity itself as extensions and outside of unity i still have the same problem so it didn’t fix anything

    • @masterjokerx549
      @masterjokerx549 Год назад

      @@_zerohour_ i had the player movement script functioning normally until i added the player collision script and the it started popping up and saying that my player movement script isn’t valid

  • @jodeer3232
    @jodeer3232 4 года назад +1

    1. I really love the series thank you so much
    2. Not important but if you are watching through them now its so unsatasfine if the backround and your position is the same but your T-Shirt changes

  • @nichobeastmode8361
    @nichobeastmode8361 6 лет назад +173

    Everyone who is having problems do this!!!
    Chang it from, void OnCollisionEnter (Collision collisionInfo) TO void OnCollisionEnter (UnityEngine.Collision collisionInfo) in your script

    • @vijaysaichowdekar5515
      @vijaysaichowdekar5515 6 лет назад +10

      thank you sooooo muchhhh NichobeastMode i was stuck doing this for like 2 days and i was literally gonna stop this thing then i tried ur thing and it worked out
      thank you once again dude

    • @PigeonFoodmemes
      @PigeonFoodmemes 6 лет назад

      thank you

    • @Seafoodmon8
      @Seafoodmon8 6 лет назад +6

      I was following one of his later videos and accidentally deleted my scripts so I had to rewrite them with all my objects and shit still there. Now whenever I try to write the collision script it won’t work any more even when I tried to change it to the way you said when it worked before. Im infuriated

    • @razvaniuga9164
      @razvaniuga9164 6 лет назад +1

      Thank you so muchhhhhhhhhhhhhhhhhhhhhhhh

    • @zontiakofficial
      @zontiakofficial 6 лет назад

      Thank you!

  • @Sofistar.
    @Sofistar. 4 года назад +9

    Im a 10 yro Kid, and i imagened to create a game, i thought it was hard but with this, it is so much better! Thankyou!!!

  • @simplerobloxstudio
    @simplerobloxstudio 3 года назад +1

    funny how Brackeys have literal free tutorials on unity and other things have like 300 per year, keep up the great work Brackeys!

  • @jovanmaric9837
    @jovanmaric9837 4 года назад +144

    "displaying a message in console isnt that exciting " *me cheering cuz it took me 2 days to do t properly*

    • @Prxojectmythic
      @Prxojectmythic 3 года назад +1

      The same mine was working perfectly about 5 Kim’s ago but my unify is like broken cuz stuff never works for me and about 2 mins ago I was able to move and turn my cube and stuff like a game bug then I added the script for collision and it just stopped moving when I clicked play 😭I hate unity

  • @Marco-rv7ec
    @Marco-rv7ec 3 года назад

    I started game development with this project, one year ago exactly. Meanwhile I made a 2D platformer game for my school project, and game development is what I love to do. Brackeys taught me the basics, and I can´t say thanks enough. Today I will finish this little cube game, because I want to work with 3D as well. Never give up people.

  • @Holladawg
    @Holladawg 5 лет назад +97

    * yellow cube hits black cube *
    "Houston, we have a problem"

    • @dio1647
      @dio1647 5 лет назад +11

      You sir, are colorblind

    • @Holladawg
      @Holladawg 5 лет назад +7

      @@dio1647 i just colored mine different

    • @hioman
      @hioman 4 года назад

      Wow, that's exactly how I colored mine

    • @kinoko87_b
      @kinoko87_b 4 года назад

      I dont understand

    • @sabana7564
      @sabana7564 4 года назад

      Okay thats so wierd I put the exact same text as mine as well!

  • @classifiedinformation8686
    @classifiedinformation8686 6 лет назад +36

    OMFG - idk if i should be so hyped but here are some comments saying it doesnt work blablabla...
    im an absolute beginner, and somehow - idk how in 15 minutes i made it work
    Also im happy to help, just copy and paste this!
    using UnityEngine;
    public class PlayerCollision : MonoBehaviour {
    public PlayerMovement movement;
    void OnCollisionEnter(Collision collisionInfo)
    {
    if (collisionInfo.collider.tag == "Obstacle")
    {
    movement.enabled = false;
    }
    }
    }

    • @akemidryzz9387
      @akemidryzz9387 5 лет назад +1

      Oh dude thank you

    • @nathanaelnoon
      @nathanaelnoon 5 лет назад +4

      In my game there are these messages:
      The referenced script (Collision) on this Behaviour is missing!
      The referenced script on this Behaviour (Game Object 'Player') is missing!
      Can someone help me?

    • @akemidryzz9387
      @akemidryzz9387 5 лет назад +1

      @@nathanaelnoon Did you copy past the script of the guy right above?

    • @akemidryzz9387
      @akemidryzz9387 5 лет назад +1

      @@nathanaelnoon Oh and in your console, double click the error message, it can lead you where the error is

    • @akemidryzz9387
      @akemidryzz9387 5 лет назад +1

      @@nathanaelnoon and did you create the scripts and "put" them on the right thing? like for this one it s on the player

  • @migcraft5072
    @migcraft5072 3 года назад +1

    still helping and relevant 4 years later thank you!

  • @Charlie13O2
    @Charlie13O2 2 года назад +6

    If you’re having issues at 4:20 rename the script to something other than “Collision” , it confuses unity and causes errors. Also change the 5th line to “void OnCollisionEnter (UnityEngine.Collision collisionInfo)”

    • @matto1919
      @matto1919 2 года назад

      now it just outputs untagged in console

    • @z-vision
      @z-vision 4 месяца назад +1

      Thanks this still is the answer to the problem 2024

    • @macaroniisnice
      @macaroniisnice 18 дней назад

      I'm literally adding a reply just so people take this as more trustworthy. My dumbass named the script "Collision" and renaming it to "PlayerCollision" literally fixed everything lol

  • @tal1753
    @tal1753 4 года назад +24

    Hello, I receive this error: Assets/PlayerCollision.cs(5,9): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference?) . Can someone help me?
    Edit: The reason you have this problem is that you must have misspelled PlayerMovement in one of the scripts.

    • @tarabothra9309
      @tarabothra9309 4 года назад +2

      This is happening with me also😫😫😫

    • @mashiromoritaka6299
      @mashiromoritaka6299 4 года назад

      thank you for editind your comment

    • @kapilbadokar
      @kapilbadokar 4 года назад +1

      It says cannot convert string to bool errror what to do??

    • @rodrigopereiramelo
      @rodrigopereiramelo 4 года назад

      write without capital, worked for me

    • @ryanwachira
      @ryanwachira 4 года назад

      @@rodrigopereiramelo thank you

  • @ppandolff9038
    @ppandolff9038 4 года назад +2

    Im very late and you probably won’t see this but damn, this series is so great and helpful!

  • @resharper9750
    @resharper9750 4 года назад +24

    For anybody stuck at 7:00 who's PlayerMovement isn't working, just remove all caps and type in playermovement (all small) instead. It'll work just fine..
    Thank me Later
    MY CODE though:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class playercollission : MonoBehaviour
    {
    public playermovement movement;
    void OnCollisionEnter (UnityEngine.Collision collisionInfo) {
    if(collisionInfo.collider.tag == "Obstacles"){
    }
    }
    }

  • @yeoldenuggetmcree9463
    @yeoldenuggetmcree9463 4 года назад +9

    7:47 it kept saying that playermovement wasnt found (checked the spelling about 10 times and the squiggly brackets where in the right place

    • @MobileEpics
      @MobileEpics 4 года назад +1

      Me too same problem

    • @noutzanders3428
      @noutzanders3428 4 года назад

      i had the same problem twice but i forgot to put the semicolons in the right place XD

    • @nodebeofodile5315
      @nodebeofodile5315 4 года назад +1

      I have the same problem, pls did you figure it out?

    • @deadbones9211
      @deadbones9211 4 года назад

      write "using System.Collections.Specialized;" at the very start of your code

    • @preecey18
      @preecey18 4 года назад

      @Csak Dolgok This! I’d spelt my initial script without caps.. then tried to do this one with it. Was pulling my hair out

  • @jihedbouchnak
    @jihedbouchnak Год назад

    the best getting started tutorial ever in unity hope you came back one day or once a while

  • @willpunchit272
    @willpunchit272 3 года назад +6

    Brackeys: We're going to delete both the start AND the update method.
    *Wait, we're deleting all of it?*
    *Always were going to.*

  • @xDerpygamer
    @xDerpygamer 4 года назад +5

    Another tip for the people who are new to coding; make sure the void isn't a private void cause it'll for some reason suggest the "improvement" just do
    void OnCollisionEnter(UnityEngine.Collision collisionInfo)
    like everyone in the comments is saying

  • @a-tech5452
    @a-tech5452 3 года назад

    I made a speed ramp using the information from this video. My game is starting to come together. Thank you for giving amazing free tutorials!

  • @lil_sweden2323
    @lil_sweden2323 5 лет назад +10

    3:59 how to set that in VS ?
    The thing that shows you what that code do. Please help

    • @594-d9b
      @594-d9b 5 лет назад +2

      Yep, wondering as well.. :/

    • @cloveri1310
      @cloveri1310 4 года назад

      Did you guys figured it out?

    • @cloveri1310
      @cloveri1310 4 года назад

      @@594-d9b Did you figured it out?

    • @594-d9b
      @594-d9b 4 года назад

      @@cloveri1310 IIRC, I installed an older version of visual studio and had to completely wipe my version and install a new one. Make sure to delete any files that has to do with VS. Also, check the place you download.

  • @SeanRun_
    @SeanRun_ 7 лет назад +30

    {PLEASE READ}
    I did everything right but when I hit play and the cube hit something else. The Player Movement didn't stop ;[

    • @DexDesign
      @DexDesign 7 лет назад

      i am having these problem too!

    • @malvack
      @malvack 7 лет назад +6

      I had the same problem. I had misspelled OnCollisionEnter to onCollisionEnter. Use capital O and it should work great =)

    • @hannax295
      @hannax295 7 лет назад

      still have the problem. :(

    • @DexDesign
      @DexDesign 7 лет назад

      me too [(

    • @joaquinlugo4187
      @joaquinlugo4187 7 лет назад

      did you guys figure it out cause im having the same problem?

  • @unstable6155
    @unstable6155 3 года назад

    this youtube series helped me get into coding

  • @KingNBearFutbolenVivo
    @KingNBearFutbolenVivo 6 лет назад +10

    For those are having troubles about the collisions code, just change this.
    void OnCollisionEnter (UnityEngine.Collision CollisionInfo)
    instead of
    void OnCollisionEnter (Collision CollisionInfo)
    AND
    if (CollisionInfo.gameObject.name == "Obstacle")
    instead of
    if (CollisionInfo.collider.name == "Obstacle")
    NOTE: Dont use Collision.gameObject.tag, because our objects are untagged.

    • @ivsatyouu5285
      @ivsatyouu5285 5 лет назад

      If you have trouble with this, its because he changed the Collision name to a capital C. make sure all of the variable names are EXACTLY the same (yes its case sensitive)

    • @sjanderson2949
      @sjanderson2949 5 лет назад

      THANK YOU!!!!!!!

    • @Mad_Elephant.
      @Mad_Elephant. 3 года назад

      tysm

  • @kinjalchauhan7501
    @kinjalchauhan7501 5 лет назад +5

    6:55: When I type PlayerMovement after public, is shows error... Can anyone guide me there?

    • @fjiturralde
      @fjiturralde 5 лет назад +2

      Check how you named the first script.

    • @kinjalchauhan7501
      @kinjalchauhan7501 5 лет назад +1

      @@fjiturralde Appreciate it..

    • @jcproducts3312
      @jcproducts3312 5 лет назад +1

      @@fjiturralde sorry but if they match and still says error any idea?

    • @fjiturralde
      @fjiturralde 5 лет назад

      @@jcproducts3312 Then the error can be anywhere, maybe you can try writing everything as presented in the video. And then comparing it with your previous code.

  • @mrstik101
    @mrstik101 Год назад

    just for fact, tags are not an acurate way for managing collision nowadays due to some reasons... but for sake of simplicity, it works.
    also, great tutorial!

  • @petmop1309
    @petmop1309 5 лет назад +10

    Somehow the PlayerMovement reference did not work, I tried everything but it did not work so I cannot continue

    • @danzobot4705
      @danzobot4705 4 года назад +1

      Had the same problem, you probably messed up with the name in the public class

    • @Sai-pb5mc
      @Sai-pb5mc 4 года назад

      @@Pandadulol thanks

    • @deadbones9211
      @deadbones9211 4 года назад +3

      write "using System.Collections.Specialized;" at the very start of your code and make sure that you wrote the name of YOUR script dont just copy PlayerMovement write the name which you gave to your movement script.

  • @Em-Fa
    @Em-Fa 3 года назад +4

    I copied the code he wrote and i still dont get the collision info in console. Can someone please help?

  • @KhalidBhat-fs9uc
    @KhalidBhat-fs9uc Год назад

    I know you have just stop uploading videos but still you have helped me a lot and that is why i am commenting.

  • @rae-lloyd
    @rae-lloyd 4 года назад +4

    brackeys: We hit an obstacle!
    me: AAAAA MY LEG

  • @KoLoap817
    @KoLoap817 4 года назад +4

    I don't see the options of the parameters on 4:00 how do I view them all?

    • @singyean
      @singyean 4 года назад

      I am having the same problem, did anyone find an answer to this?

    • @epicvideogamer7675
      @epicvideogamer7675 4 года назад

      I think it is extension in visual studio code

    • @KoLoap817
      @KoLoap817 4 года назад

      @@epicvideogamer7675 what is it called

    • @SunilNmb
      @SunilNmb 4 года назад

      @@KoLoap817 in visual studio code, simply type unity in the extension search bar and install the unity tool 'something'

    • @lostyplayz2799
      @lostyplayz2799 3 года назад

      If you mean by the autocomplete feature,
      If it is not working you might have entered that statement incorrect or your Visual studio is not connected to Unity. If it is connected but it dosent works then intellisense (the auto complete) is not working.

  • @jordanbentley
    @jordanbentley Год назад +1

    this is actually so fun to just mess around in and learn, thanks so much! :)

  • @fredthompson9825
    @fredthompson9825 3 года назад +3

    I dont get the drop down menu that appears in the video for example after ' CollisionInfo. ' any idea how to make this show?

  • @connorwill9916
    @connorwill9916 4 года назад +3

    For anyone confused on why you wont stop moving and get an error message as well possibly use this code (replase scr with your PlayerMovement script name, and also place playermovement script in collision script)
    using UnityEngine;
    public class PlayerCollision : MonoBehaviour
    {
    public scr movement; // A reference to our PlayerMovement script
    // This function runs when we hit another object.
    // We get information about the collision and call it "collisionInfo".
    void OnCollisionEnter(UnityEngine.Collision collisionInfo)
    {
    // We check if the object we collided with has a tag called "Obstacle".
    if (collisionInfo.gameObject.CompareTag("Obstacle"))
    {
    movement.enabled = false; // Disable the players movement.
    }
    }
    }

    • @LightsArc
      @LightsArc 2 года назад +1

      OMG THANKS SO MUCH

    • @Ownxer
      @Ownxer 2 года назад

      thank you! it didnt work for me and this saved me

  • @projects9275
    @projects9275 4 года назад

    YOU ARE THE BEST RUclipsR! Too sad you no longer produce more content but thank you so much, I actually liked coding thanks to you so it is very inspiring :)

  • @jdgoldvox
    @jdgoldvox 4 года назад +48

    To anybody who thinks that their player is "stuck" as soon as it hits the ground.
    I just fixed my code by making sure the semicolon ( ; ) is in the correct place. I axidentally put it after : if (collisionInfo.collider.tag == "Obstacle") ;

    • @Danger_SeekerS
      @Danger_SeekerS 4 года назад +3

      Thankyou so much

    • @mattiashenning7717
      @mattiashenning7717 4 года назад

      Helped a lot. Thanks mate

    • @Rangal25
      @Rangal25 4 года назад +1

      When I do that, it gives me a compile error, it won't work unless I have a semicolon there, so I don't know what to do

    • @SalopianYoutube
      @SalopianYoutube 4 года назад +1

      Saved me time, thanks

    • @shreyashdurgapal4715
      @shreyashdurgapal4715 4 года назад

      Assets\Playercollisions.cs(5,8): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference? how do i fix this please tell

  • @scratchtutorials1068
    @scratchtutorials1068 4 года назад

    we love you, you are the best teacher ever Brackeys!

  • @DavidPalayathar
    @DavidPalayathar Год назад +42

    For those who are wondering on how to get the collision system to work, I found out how to fix it,
    The code:
    using UnityEngine;
    public class PlayerController : MonoBehaviour
    {
    public PlayerMovement movement;
    void OnCollisionEnter(UnityEngine.Collision collisionInfo)
    {
    // Check if the player collides with another object
    if (collisionInfo.gameObject.CompareTag("Obstacle"))
    {
    movement.enabled = false;
    }
    }
    }
    Make sure you remember to link the PlayerMovement script to this script through unity, in the inspector.
    I hope you've found this helpful🙂

  • @Shadow-vw8zk
    @Shadow-vw8zk 4 года назад +11

    I have writed all the code but it says "We hit an Obstacle" when i fall on the ground and when i hit the obstacle

    • @SaucySeth777
      @SaucySeth777 4 года назад +2

      May be late but do you have a ; on your if line?

    • @60bpmmusic_
      @60bpmmusic_ 4 года назад +6

      Well, just found out you have to take out the ; on the if line

    • @SaucySeth777
      @SaucySeth777 4 года назад +3

      AZOM Sorry, didn’t specify whether you wanted it there or to remove it. Yeah you just needed to remove it.

    • @callummyers2480
      @callummyers2480 4 года назад +2

      @@SaucySeth777 been stuck on this for like 20 minutes thanks so much

    • @SaucySeth777
      @SaucySeth777 4 года назад

      Callum Myers it’s all good, I was stuck on it too, that’s how I knew what was wrong lol

  • @callmedaddyfps8029
    @callmedaddyfps8029 2 года назад +3

    At 7:03 I cannot figure out why my script isn't working. I have entered and redone the code several times. The movement script is not showing up in the player collision script. The movement is not popping up in the player collision section. I made sure I saved it as well. Clueless. I'm not sure if coding has changed since this video launched. I am new to this. Any help would be great! Loving the tutorial so far!

    • @SnapSnackTV52
      @SnapSnackTV52 2 года назад +2

      me to did you find a Solution bye now?

    • @callmedaddyfps8029
      @callmedaddyfps8029 2 года назад

      @@SnapSnackTV52 no:/ I did not. I really have no idea. I tried googling a few things and still came up with nothing. Thought about restarting the entire project. But I would rather find a solution.

    • @barskdrt6840
      @barskdrt6840 2 года назад

      The player added a c# component named motion and added a force application function (rigidbody.AddForce) to that component (c# file) and thus used that file as motion function.
      The video didn't show it either, but that's the thing :)

    • @callmedaddyfps8029
      @callmedaddyfps8029 2 года назад

      @@barskdrt6840 I'm not sure I follow. I want to understand so badly.

    • @barskdrt6840
      @barskdrt6840 2 года назад

      @@callmedaddyfps8029 videoda göstermiyor ama yaptığı şey sadece kuvvet uygulamak için fazladan c# konsol dosyası açıp onu kullanmak .

  • @Duck7_K1NG
    @Duck7_K1NG Месяц назад

    I was working on roblox lua for about 5 years now but I never had the feeling of that being an actual game so I am here ... ik this searies is kinda old but I guess its still relevant and a great starting point on understanding the game engine :DD I found out that its somewhat simmular to what I ve been doing on roblox so following along is not an issue thx for the searies

  • @Xylz
    @Xylz 4 года назад +16

    For anyone having it detect the ground as an obstacle,
    Make sure you dont have a semicolon here:
    public class PlayerCollision : MonoBehaviour
    {
    public PlayerMovement movement;
    void OnCollisionEnter (Collision collisionInfo)
    {

    if(collisionInfo.collider.tag == "Obstacle")

    • @LuxterVr
      @LuxterVr 2 года назад +1

      thanks for the code for some reason my code wasn't working but I copied yours and it works now thanks man

    • @Xylz
      @Xylz 2 года назад

      @@LuxterVr no problem!

    • @mpsclllion
      @mpsclllion 2 года назад

      It won’t let me drag playermovement into movement

    • @rfb-playz3382
      @rfb-playz3382 Год назад +1

      Thanks man.I have been stuck and searching for the solution for days and now it finally works.thanks alot

    • @OK-gz4wr
      @OK-gz4wr Год назад +1

      You saved me. Thanks bro

  • @renovski8992
    @renovski8992 5 лет назад +4

    i love this channel. thank you for these amazing tutorials

  • @innygraczfps
    @innygraczfps 2 месяца назад +1

    sweet God. i have to learn all this. i hope at least my game will make my efforts worth it

    • @higorss
      @higorss 2 месяца назад

      focus on learning first then when you are at a intermediate level then you try to make a complete game, and also try to keep it simple otherwise you'll get frustrated

  • @FrissR6
    @FrissR6 4 года назад +4

    I did the steps but when I hit the obstacle as explained at the end of the video, my player keeps moving Even though I want it to stop and programmed it to stop I am new to coding so please help

    • @tristangovier4877
      @tristangovier4877 4 года назад

      Can you give me a run down of your code? Did you do exactly what Brackeys did?

    • @basharblus
      @basharblus 3 года назад

      me too i have the same problem

    • @basharblus
      @basharblus 3 года назад

      @@tristangovier4877 i did exactly what he did
      using UnityEngine;
      public class playercollision : MonoBehaviour {
      public playermovment movement;
      void OnCollisionEnter (Collision collisionInfo)
      {
      if (collisionInfo.collider.tag == "Obstacle")
      {
      movement.enabled = false;
      }
      }
      }

  • @GodIsGood845
    @GodIsGood845 5 лет назад +14

    if statement does not work for me. it turns of movement anyways. when it hits the ground it turns off. eventought it is colliosionInfo.collider.tag

    • @mattbullen3330
      @mattbullen3330 5 лет назад

      Same

    • @mattbullen3330
      @mattbullen3330 5 лет назад +1

      Have you figured out how to fix it

    • @skorpius2029
      @skorpius2029 5 лет назад

      @@mattbullen3330 you probably didn't do tag correctly as it turns it off as soon as player hits the ground

    • @stevencvisuals
      @stevencvisuals 5 лет назад

      @@skorpius2029 I tagged it correctly but it still won't work.

    • @masamotox952
      @masamotox952 4 года назад

      You spelt collision wrong

  • @lilyofluck371
    @lilyofluck371 3 года назад +2

    I dont get info when I put the dot. Is that an extension? Or am I missing something.

  • @yourlocalmemejoint8325
    @yourlocalmemejoint8325 7 лет назад +14

    you deserve more subs

  • @nostalgic8945
    @nostalgic8945 4 года назад

    Love it, hope i survive, its like my 10 attempt in unity and for first time i have done something and learnd, thank you

  • @TimM-kz1vl
    @TimM-kz1vl 5 лет назад +21

    These are my notes on this vid so you don't have to rewatch it: Video 5: Collision
    Making things happen upon collision.
    Create new script, delete start and update method
    Void OnCollisionEnter () //Anything within these curly brackets will be called when an object collides with something. Needs a rigidbody and collider.
    {
    Debug.Log(“We hit something!”); //Make an obstacle and call it Obstacle
    }
    Console will display text when you collide with it.
    You will get that message whenever you collide with the ground though, so switch to a boolean statement.
    Void OnCollisionEnter (Collision collisionInfo) //Getting information on what you collide with.
    {
    Debug.Log(collisionInfo.collider.name); //displays name of object
    }
    Now we can change it to say something only if we hit a specific object.
    If (collisionInfo.collider.name == “Obstacle”)
    {
    Debug.Log(“We hit an obstacle!”);
    }
    You can group objects together using tags. Tags are at the top of the inspector and name it Obstacle.
    If (collisionInfo.collider.tag == “Obstacle”)
    To turn off player movement upon collision, we need to add a new variable above void OnCollisionEnter that cancels the script PlayerMovement
    Public PlayerMovement movement;
    There will now be an empty slot in the inspector. Drag the Playermovement script to it.
    Edit the collision script if/then statement to
    If (collisionInfo.collider.tag == “Obstacle”)
    movement.enabled = false;
    // disables movement script

  • @tinymooshmallow6181
    @tinymooshmallow6181 2 года назад +3

    Assets\PlayerCollision.cs(6,12): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference?)

  • @gamevader
    @gamevader 4 года назад

    I'm so grateful for this series!

  • @stefanmelinte3581
    @stefanmelinte3581 5 лет назад +16

    I did everything but it doesnt say anything in the console

    • @andreasfrom9091
      @andreasfrom9091 5 лет назад +1

      Same, I really need help with this

    • @dontknowwhy1758
      @dontknowwhy1758 5 лет назад +2

      same here! but why? i did everything he did...

    • @friday1015
      @friday1015 4 года назад +1

      For me I sure did add/create a tag but forgot to tag the obstacle.creating a tag and tagging it are two different things

    • @buqthebuq6187
      @buqthebuq6187 4 года назад

      same I need help :/

    • @masamotox952
      @masamotox952 4 года назад +1

      @@buqthebuq6187 You have to type UnityEngine.Debug.Log("We hit something!")

  • @gameboy_69
    @gameboy_69 4 года назад +9

    for me playermovement script is not disabled when the cube hits the obstacle i tired like more than 4 hrs to solve but no solution yet plz anyone help me

    • @kingmole7617
      @kingmole7617 4 года назад

      GAMER ARYA same here Idk what to do

    • @feero9680
      @feero9680 4 года назад +1

      You might forget to drag the playermovement script into the playercollision script inside "movement"

    • @bvngmusic
      @bvngmusic 4 года назад

      same here

    • @apnadekhtu
      @apnadekhtu 4 года назад

      Use GetComponent(). enabled=false;
      Use the above code in void start() {} method
      So complete code would be
      void start() {
      GetComponent(). enabled=false;
      }
      Don't forget to reply back if it's working or not.

    • @mgud5893
      @mgud5893 4 года назад

      @@apnadekhtu nope

  • @amit22joshi
    @amit22joshi 3 года назад

    This guy makes the things too easy...wow...impressed...

  • @AngelTFC
    @AngelTFC 5 лет назад +5

    "We can use the dot to assess in to different infos, stuff like the Impact Foursome.." - Brackeys ;)

    • @varunbajoria6126
      @varunbajoria6126 4 года назад

      im having a problem with this as the dot doesnt show any info in visual studio code

    • @ilovecairns5181
      @ilovecairns5181 4 года назад

      They didn’t say that ok, this is a joke

    • @varunbajoria6126
      @varunbajoria6126 3 года назад

      @@lewel3788 it was 3months ago and no i had exams

  • @legosol1081
    @legosol1081 2 года назад +7

    Thank you so much, this series is great!

  • @chrisgaming9567
    @chrisgaming9567 3 года назад +2

    This went perfectly well

  • @blsbros8269
    @blsbros8269 3 года назад +3

    i will comment every year on this video and share my game dev experince
    2022---
    i am new in unity trying to learn 2d games

    • @yusufofski
      @yusufofski 4 месяца назад

      how is it going so far

  • @ashtongreenwood646
    @ashtongreenwood646 4 года назад +3

    That feeling of accomplishment after you fix an error is like no other

    • @trevorstechcorner8361
      @trevorstechcorner8361 3 года назад +1

      you are right my friend. Just spent nearly an hour trying to figure out why I wasn't getting any console debub messages. I had accidentally deleted everything and the script was weird.

    • @davidpopoola4636
      @davidpopoola4636 2 года назад

      ​@@trevorstechcorner8361 me too how did u do it

  • @marcellmeszaros9381
    @marcellmeszaros9381 5 лет назад +10

    If anyone is having issues with the movement.enabled = false line, replace it with GetComponent().enabled = false;.

    • @danleavitt9589
      @danleavitt9589 5 лет назад +3

      Thankyou so much

    • @loganmcghee2529
      @loganmcghee2529 4 года назад +1

      still not working, thanks for the help tho

    • @Nakasasama
      @Nakasasama 4 года назад +1

      @@loganmcghee2529 Go into your slippery physics and change the values dynamic friction and static friction to 0.25. I had a problem where it clicked off but the movement didn't stop. It's possibly a physics problem that noobs like myself don't see. :-/ Took me an hour looking around to figure this one out. Anyhow, hope this helps.
      p.s. you do this in the Inspector window.

    • @mahindersingh3995
      @mahindersingh3995 4 года назад +1

      @@Nakasasama thx bro I am stuck on these error from last 4 days I am getting frustrated thx bro again

    • @vanillamusket5648
      @vanillamusket5648 4 года назад +1

      I've been trying to figure out how to fix this for days, thank you so much

  • @sauseysoyafg338
    @sauseysoyafg338 4 года назад +4

    Wait what why when I hit the obstacle it didn’t turn off my player movement plz help

    • @scampernoodle6757
      @scampernoodle6757 4 года назад +1

      same

    • @pathfinder6121
      @pathfinder6121 4 года назад

      Did you assign tag in Obstacle?

    • @Zack4343
      @Zack4343 4 года назад +1

      For eveyone using the newer unity, like 2020 unity and you're running into the problem of the player not stopping/ script not unchecking on the box after you collide, then try dragging in the Player Collision script into the player cube components and then under the script section of Player Collision Script where movement is it might be at none if it is then click on the circle with a bullseye next to (none) PlayerMovement and then when the menu pops up select player option and it should work now.

    • @arishakhan1137
      @arishakhan1137 4 года назад +1

      @@Zack4343 my script unchecks but cube doesn't stop

    • @Zack4343
      @Zack4343 4 года назад +1

      @@arishakhan1137 must be the coding then I'd verify all of it and read other comments see what they say.

  • @roundpigeon492
    @roundpigeon492 4 года назад +1

    nice series
    I can finally understand programing

  • @simplynutty3529
    @simplynutty3529 4 года назад +31

    For some reason, in the 2019.3.13f1 the “We hit something.” doesn’t work. Any suggestions to help?

    • @tonyG433
      @tonyG433 4 года назад +17

      You have to type UnityEngine.Debug.Log("We hit something!")
      Had the same problem but found the solution in the comments under ep2

    • @micahmurphy4546
      @micahmurphy4546 4 года назад +1

      @@tonyG433 thankyou

    • @musakocak641
      @musakocak641 4 года назад

      @@tonyG433 thanks so much man i was getting errors till i saw ur comment

    • @nurseda5245
      @nurseda5245 4 года назад

      @@tonyG433 thank you so much!

    • @bagel3929
      @bagel3929 4 года назад +3

      @@tonyG433 it still isn't working for me, I tried the UnityEngine.Debug.Log("We hit something!"),

  • @d3rplegend254
    @d3rplegend254 6 лет назад +8

    It says we hit an obstacle when i hit the ground, even when it is testing for a tag!

    • @Chris-hb3gz
      @Chris-hb3gz 6 лет назад +1

      share the code

    • @emilianosainz4718
      @emilianosainz4718 6 лет назад +1

      using UnityEngine;
      public class PlayerCollision : MonoBehaviour
      {
      void OnCollisionEnter(UnityEngine.Collision collisionInfo)
      {
      if (collisionInfo.gameObject.name == "Obstacle");
      {
      Debug.Log("We hit an obstacle");
      }
      }
      }@@Chris-hb3gz

    • @SinDoppelganger
      @SinDoppelganger 5 лет назад +3

      @@emilianosainz4718 Late answer but might help : Don't close with a ; after if (collisionInfo.gameObject.name == "Obstacle")

    • @_cuckk5097
      @_cuckk5097 5 лет назад +1

      Sinethic thanks so much man I finally got it to work!

    • @WarriorX16
      @WarriorX16 5 лет назад

      @@SinDoppelganger THANK YOU SO MUCH! As a CS major, I should be ashamed lol, but I'm just glad I got it to work.

  • @gamergrape0914
    @gamergrape0914 2 года назад

    This series aspires me so much to go forward in game design thank you ❤

  • @dreamingwanderer1124
    @dreamingwanderer1124 3 года назад +3

    So I am using visual studio and I noticed that when you type into it, it comes up with a list of possible things you want to write. It doesn't do that with mine. I was wondering if there was anything I could do to add that function to my version of Visual Studio? (Like an extension or something)

    • @TheTopShelf
      @TheTopShelf 3 года назад +1

      make sure to go to Edit > Preferences > External Tools and make External Script Editor into visual studio

    • @lilyofluck371
      @lilyofluck371 3 года назад +4

      @@TheTopShelf I don't see it. There is no preference in edit, only in files. There is also no external tools tab in files > preferences
      Edit: I figured out that you meant in unity, not vscode. Can I face palm myself?

    • @TheTopShelf
      @TheTopShelf 3 года назад

      @@lilyofluck371 lmao at least u figured it out

  • @michaelrothkopf4088
    @michaelrothkopf4088 5 лет назад +4

    I can't drag the PlayerMovement.cs into the reference in PlayerCollision.cs.
    Code:
    public PlayerMovement movement;
    And then in Unity, I just can't drag it.

    • @sean6269
      @sean6269 5 лет назад

      same here

    • @sean6269
      @sean6269 5 лет назад +2

      I figured it out, go to your PlayerMovement script, go to where it says "public class PlayerMovement : MonoBehaviour", and see what the script is called, in this case it would be "PlayerMovement." I just copied and pasted the name and it worked, I have no idea why

  • @crimsonbeast360
    @crimsonbeast360 4 года назад +1

    Can someone please help me!!!
    4:21 I wrote exactly what he wrote and hitted save. After that I went back to unity and there was a window saying something like: ,,the script (collision) includes something that is not in this version of unity. Please update _*_ in to it. Please make a backup because evry script is going to update".
    * I think it was smth like ARI-s idk
    Here is the problem I don't remember what is should update to unity and I pressed no thanks because I wanted to save evry other script an to than update it.
    And now I don't know how to update it bacause I don't get the window anymore. Instead I'm getting a bunch of errors

  • @aeroder5591
    @aeroder5591 6 лет назад +4

    It displaeys an error when i declare the public playermovement movement;
    Says that
    Unexpected symbol public

  • @thomasremstedt5499
    @thomasremstedt5499 6 лет назад +9

    Still, love how he says "Wednesday"! XD

  • @buddhajon96
    @buddhajon96 2 года назад

    Great tutorials, though I am not doing any work as I go. Perhaps that is a mistake, but I can always come back. I just want to see some basics laid out in a comprehensive way, and these videos are definitely doing that. Also, nice smile! :)

  • @jaydemn4888
    @jaydemn4888 4 года назад +3

    Whenever I touch my obstacle it dosent say I hit anything and I copied every bit of code word by word. It dosent even show me any errors what am I doing wrong!

    • @danfromzr3289
      @danfromzr3289 4 года назад

      Same

    • @AkashKumar-hl8wz
      @AkashKumar-hl8wz 4 года назад

      Did you got the solution?

    • @danfromzr3289
      @danfromzr3289 4 года назад

      @@AkashKumar-hl8wz i think I had to Google it. I forgot the solution. Just go back step by step.

  • @keary3757
    @keary3757 4 года назад +1

    needed help here, so in 6:59 when I typed in public Playermovement movement;
    but unity said the type or name space playermovement could not be founded you're missing a directive or a assembly refernce
    got this fixed but why will it say expected

  • @Tank3344-u2w
    @Tank3344-u2w 3 года назад +3

    Help its not working win I hit the cube it doesn’t turn player movement off

  • @imconfused6955
    @imconfused6955 8 лет назад +17

    These are great, but I still haven't revived an answer to a question. I have been asking for a long time. Can you make it so the map random generates and the game is endless

    • @RitobanRoyChowdhury
      @RitobanRoyChowdhury 8 лет назад +12

      You can. Look up Procedural Generation. Sebastian Lague has a series on it, and there are plenty of Unite talks on the subject (e.g. procedural generation in Sir, You are Being Hunted). The Procedural Generation Wiki and the website donjon (donjon.bin.sh/) have some good material that you should look at.

    • @matttilly1302
      @matttilly1302 6 лет назад +1

      I was thinking about trying to implement this as well. My idea was to have the ground keep extending on the z axis a the same rate at the player moves forward until player == collision

    • @Fwizzle45
      @Fwizzle45 6 лет назад

      As the other guy said, you guys are talking about procedural generation. It's the idea of randomly creating maps based on preset stuff. So it can take 10 different obstacles you created and will randomly generate them in different configurations. Could be set to do this indefinitely.