Level selection in your Unity game | Unity tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น •

  • @CocoCode
    @CocoCode  หลายเดือนก่อน

    Want to learn how to create even more professional elements for your games?
    👉 Check out my newest course, Master Unity UI ➡ bit.ly/cc-unity-ui-133
    It’s packed with everything you need to create awesome UI ✨🎨

  • @qqq9542
    @qqq9542 2 ปีที่แล้ว +16

    I really love your presentation, editing and your explanation. You don't explain too fast or too slow. Just perfect. Thank you so much!

  • @ItsMeHelel
    @ItsMeHelel 2 ปีที่แล้ว +5

    Man, so glad you're back! Didn't even watch the video yet, just wanted to let you know you are awesome and we missed you!

  • @kingroliKR
    @kingroliKR 2 ปีที่แล้ว +1

    Hello, thanks for coming back and teaching us!

  • @mohamedal-qadeery6530
    @mohamedal-qadeery6530 2 ปีที่แล้ว +1

    Welcome back we missed your videos :D

  • @Jimaniki
    @Jimaniki 2 ปีที่แล้ว +4

    Yeahhh you're back !
    Thank you for this work.
    Hope you do a tutorial about PlayFab Azure Functions one day :]

  • @AporiaLester
    @AporiaLester 2 ปีที่แล้ว +1

    Beyond perfect timing for that video, thank you.

  • @emielv8365
    @emielv8365 2 ปีที่แล้ว +1

    bro your editing is amazing

  • @luck8762
    @luck8762 2 ปีที่แล้ว

    we had missed you guys

  • @RootGames
    @RootGames 2 ปีที่แล้ว +2

    Top quality editing!

  • @BageStudios
    @BageStudios 2 ปีที่แล้ว

    Code legend is back!

  • @VEOdev
    @VEOdev ปีที่แล้ว

    Universal scene is good for levels that have the same things and only some little things change, like the background and game difficulty for example, it is good to have it because sometimes you want to change something or add a new idea, if you have multiple levels you will have to go across all levels and do it.

  • @rambro5237
    @rambro5237 2 ปีที่แล้ว

    thanks for video It save a lot time , instead of dragging and aligning , grid is brilliant solution

  • @tadeasnapackach4496
    @tadeasnapackach4496 2 ปีที่แล้ว

    lets go finaly new vid. THX i very like it of your prezentation

  • @qqq9542
    @qqq9542 2 ปีที่แล้ว +2

    So awesome! Would love for you to make make new videos on how to unlock levels! Thank you!

    • @CocoCode
      @CocoCode  2 ปีที่แล้ว +1

      Thanks 🎉
      Actually I have a second part of this video already in the planning stage

    • @qqq9542
      @qqq9542 2 ปีที่แล้ว

      @@CocoCode No worries! Cant wait for your next video! :)

  • @PixelbugStudio
    @PixelbugStudio 2 ปีที่แล้ว +1

    Yaay.. He's back

  • @aarondelgado3421
    @aarondelgado3421 ปีที่แล้ว

    Thank you for making the video and your content was easy to follow and understand! You have earned yourself a new subscriber!

  • @apteryx
    @apteryx ปีที่แล้ว

    Amazing explanation, amazing editing, amazing video, subbed

  • @Oudipus
    @Oudipus 2 ปีที่แล้ว

    you are perfect don't give up

  • @azgan123
    @azgan123 2 ปีที่แล้ว +4

    Interesting way to do this. In the script you could also find button as component on awake and add delegate to onclick event.
    Normally I use some kind of UI manager class that has all the public methods. Idk which one is less messy >< I might try your approach with putting monobehaviour on UI elements

    • @CocoCode
      @CocoCode  2 ปีที่แล้ว +1

      In my opinion using OnClick event in the Unity inspector is way clearer approach - you don’t need to dig into the code to find what [this] button is doing, I strongly suggest such option.
      But fair enough, in this video for example you could automate assigning level values (1,2,3…) to the buttons - it would be a good idea to create a script that at the start cycles though all buttons and assigns correct Id automatically. But that would be just a little bit out of scope of this beginner tutorial

    • @azgan123
      @azgan123 2 ปีที่แล้ว

      @@CocoCode Yeah you only need to dig through scene hierarchy now 🤣🤣🤣

    • @CocoCode
      @CocoCode  2 ปีที่แล้ว +1

      But if you select button in Unity, you can immediately know what happens after it’s click, otherwise (if not managed properly) you might not know which script changes it’s onClick event

  • @kacpermaciag9595
    @kacpermaciag9595 ปีที่แล้ว

    Nice and clear instructions, thanks 👍🏻

    • @CocoCode
      @CocoCode  ปีที่แล้ว

      Thanks for watching!

  • @beamaybelarmino1043
    @beamaybelarmino1043 2 ปีที่แล้ว +9

    hi, can I request a tutorial for the levels that could be only unlocked once the player finished the first stage

    • @aarondelgado3421
      @aarondelgado3421 ปีที่แล้ว +2

      You probably can create variables to save when the game is initialized for the first time such as level2locked = true. Then if the player finishes the first stage, the game can update that saved variable to: level2locked = false and when the load selection scene is loaded it will check for that variable and if it has changed, it will use the logic you have programmed to remove the lock image, etc.

    • @martinpolajner9080
      @martinpolajner9080 ปีที่แล้ว

      ​@@aarondelgado3421thats a good idea i did something similar only onstead of making a bunch of bool IsLocked levels you can save one int for levelUnlocked and all levels lower to that are unlocked in a loop on awake

    • @baldchessman
      @baldchessman ปีที่แล้ว

      You can have an array of bools called canEnter for example and an array of levels called levels ,and then before loading a level ,check if canEnter[the level's index] is true

  • @dompower500
    @dompower500 ปีที่แล้ว

    excellent tutorial

  • @seiitkhanotegali7734
    @seiitkhanotegali7734 2 ปีที่แล้ว

    thanks dude, ur video helped alotttt

  • @foreducation408
    @foreducation408 ปีที่แล้ว

    really helpful tutorial.

  • @dafffodil
    @dafffodil ปีที่แล้ว +1

    im frustrated that the thumbnail includes the highlighted level icon growing in size but you didn't talk about how to make that happen in the video (thats what im looking for specifically how to do)

    • @CocoCode
      @CocoCode  ปีที่แล้ว +1

      Hey! 👋
      Please check out this older video of mine that covers button animations:
      th-cam.com/video/cW-E4WEogzE/w-d-xo.html

  • @blacknwhite1313
    @blacknwhite1313 9 หลายเดือนก่อน

    thanks brother

  • @𤙵
    @𤙵 2 ปีที่แล้ว +2

    ty

  • @Gamezy427
    @Gamezy427 9 หลายเดือนก่อน

    Hi , Thanks for amazing video
    I have a question, is it possible to implement this feature through Playfab ?

  • @yasircolak4294
    @yasircolak4294 2 ปีที่แล้ว

    Thanks for the nice explanation. What program do you use to edit video?

  • @nastyle8861
    @nastyle8861 ปีที่แล้ว

    hi, thank you for video😊
    but I have a question, so, will it work in 3d project?

  • @bonfaceosuka
    @bonfaceosuka ปีที่แล้ว

    How can I make all the buttons interactable

  • @SirSnowman
    @SirSnowman ปีที่แล้ว

    Thanks a lot. But how does a game like candy crush handels more than 10.000 levels?

  • @juandeybycarlos-chullo6741
    @juandeybycarlos-chullo6741 2 ปีที่แล้ว

    Thank you so much

  • @darkmagicians62
    @darkmagicians62 ปีที่แล้ว

    is it possible to be done on an overworld map, like Candy Crush or Super Mario World?

  • @rebecarodrigues8302
    @rebecarodrigues8302 ปีที่แล้ว

    the button "back to level selection" doesnt appear to me

  • @muaazkhan9043
    @muaazkhan9043 2 ปีที่แล้ว

    Do you use Premier pro for editing?

  • @raseenahmed1149
    @raseenahmed1149 ปีที่แล้ว

    great vid

  • @malcomdecynthia2pc802
    @malcomdecynthia2pc802 2 ปีที่แล้ว

    Hi everything one
    Tried to use Animator as show in Coco vidéo but it bug with my last Unity version. Has anyone à solution ?
    Thank’s

  • @redymedy
    @redymedy 2 ปีที่แล้ว +1

    but it doesn't work if your using worlds
    1 - 3 would only display 1-1

    • @samirflima
      @samirflima ปีที่แล้ว

      have you found a way to do it?

  • @JK96CZ
    @JK96CZ ปีที่แล้ว

    So for the universal scene it works by changing background and sprites but if your levels have enemies switches etc. it means you would have to move it in by this script?

    • @CocoCode
      @CocoCode  ปีที่แล้ว

      That is correct! If your game is based on designed levels (e.g. you need to place elements in a Unity editor), multiple scenes approach may be better. But if your game is highly script-logic based and everything is generated using script, it may be more convenient to have everything in one scene

  • @alvingunawan1293
    @alvingunawan1293 2 ปีที่แล้ว

    great videos! maybe could you make new tutorial about fisher yates shuffle on unity quiz? thank you..

  • @Zygimantasfpv
    @Zygimantasfpv ปีที่แล้ว

    best vidio ever

  • @Gvan1gus
    @Gvan1gus ปีที่แล้ว

    idk why but my scene just pauses when it loads

  • @MisterTrayser
    @MisterTrayser 15 วันที่ผ่านมา

    What if I have 100 levels?

  • @JeffKomarow
    @JeffKomarow 2 ปีที่แล้ว

    🙌

  • @afzone4848
    @afzone4848 ปีที่แล้ว

    500 like from me

  • @user_
    @user_ 2 ปีที่แล้ว +3

    😃

  • @satyasai69
    @satyasai69 2 ปีที่แล้ว

    How to lock

  • @siddharthjali
    @siddharthjali 2 ปีที่แล้ว

    i didn't understand why he used universal scene

  • @ИванСоблазн
    @ИванСоблазн ปีที่แล้ว

    Superficially

  • @AtifShahab_-c_ROLL
    @AtifShahab_-c_ROLL 2 ปีที่แล้ว

    are you Great Scot??

  • @Wysockyy
    @Wysockyy 2 ปีที่แล้ว

    Maciek, czemu nie robisz filmów po polsku?

  • @chickengunplayer3065
    @chickengunplayer3065 8 หลายเดือนก่อน

    Pls Bro Scripts

  • @zSal
    @zSal 2 ปีที่แล้ว

    I'm the 69th liker.

  • @DivSharp
    @DivSharp 2 ปีที่แล้ว +1

    Everything looked beautiful
    Until the button was created

    • @CocoCode
      @CocoCode  2 ปีที่แล้ว

      Why? 😅

    • @DivSharp
      @DivSharp 2 ปีที่แล้ว +1

      @@CocoCode Obviously, The default unity button looked ugly before you edited it 0:46