2D Infinite Runner Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • In this video we cover everything in the chapters down below. I hope it helps, and make sure to subscribe if so!
    Intro 00:00
    Scene Overview 00:11
    Player Script Start: 00:34
    Creating Spawn Points: 04:43
    Obstacle Script: 06:13
    GameManager Script: 07:46
    Player Slide: 12:34
    Speed Multiplier: 16:21
    Player Respawn: 18:47
    Distance UI: 19:55
    Destroy Object off Screen: 23:10
    Outro: 24:10
    Main Channel: / bblakeyyy
    Patreon with fully explained c# scripts:
    / blakeygames
    DISCORD SERVER LINK: / discord
    Silhouette Dash free download:
    blakey-games.itch.io/silhouet...
    Join the discord community!:
    / discord
    Play my games! :
    blakey-games.itch.io/
    play.google.com/store/apps/de...
    Watch me Live on twitch: / bblakeyyy
    My Website!: bblakeygames.wixsite.com/blak...
    player controller, first person controller, unity moreblakey, bblakeyyy, unity tutorial, unity 2d, unity fps, unity shooting, unity reloading, fps reload, blakey shooting Audio used in my videos:
    ♪ Onion (Prod. by Lukrembo)
    Link : • (no copyright music) l...
    ♪ Branch (Prod. by Lukrembo)
    Link : • (no copyright music) c...
    ♪ Biscuit (Prod. by Lukrembo)
    Link : • (no copyright music) l...
    ♪ Bread (Prod. by Lukrembo)
    Link : • (no copyright music) j...
  • ИгрыИгры

Комментарии • 42

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

    For those stuck in a permanent slide, create an arrow back to the idle node, and configure the details to your needs. not sure why this isn't in the video :)

  • @apananabeel
    @apananabeel Год назад +8

    For those stuck in a permanent slide: You have to create a new parameter in the Animator (call it Idle) and Make Transition (from Slide state) back to Idle. Make sure the transition back to Idle is configured exactly the same as the transition from Idle to Slide and set the Condition to Idle.
    Then in your script create an additional if statement under the Slide/KeyDown if statement to call the transition back to Idle state. It's practically the same code as the "GetKeyDown" event but you want to change "GetKeyDown" to "GetKeyUp" and make sure your anim trigger is "Idle"

    • @dani.d506
      @dani.d506 Год назад

      this helped a lot! thanks!

    • @ItsLJames
      @ItsLJames 11 месяцев назад

      Thank you!

  • @viraj3944
    @viraj3944 8 месяцев назад

    Very helpful, on the point, professional quality and good explanation. Subscribed

  • @parsa26
    @parsa26 Год назад +4

    absolutely nice tutorial 🔥 keep making these useful videos 🔥

  • @Rfxa_
    @Rfxa_ Год назад +2

    i LOVE THIS VIDEO thank YOU

  • @Rfxa_
    @Rfxa_ Год назад +2

    Good wrk bro

  • @Mballs2478
    @Mballs2478 7 месяцев назад +1

    thanks buddy!

  • @serdarkaya4557
    @serdarkaya4557 11 месяцев назад

    wow so good video so detailed so clear... thx for

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

    Great tutorial, allthough after I did the Player Respawn script the player movement kinda failed, meaning i could jump to the moon if i wanted to xd, got any clue?

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

    anyone know why i get this error:
    Assets\player.cs(38,13): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

  • @viraj3944
    @viraj3944 8 месяцев назад

    How do I instantiate and randomise multiple Obstacles?

  • @Haffey.z64
    @Haffey.z64 Год назад

    when i press shift it doesnt crouch(i am using GetButtonDown("Crouch") and i added it in the input manager and set it to LeftShift, but the player isnt crouching
    EDIT: I tried with GetKeyDown instead and its working. Kinda sad, now i cant add controller support

  • @loafocheese
    @loafocheese Год назад +2

    how do you get the floor and player that you start with at the beginning of the video?

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

      Right click on the hierarchy
      2D, sprites, square

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

      @@morebblakeyyy thank you

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

      @@morebblakeyyy Thank you! This tutorial really helped!

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

      @@morebblakeyyy What was the solution?

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

      Replied to wrong comment....my bad.

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

    I've been looking at the problem for a little while now, but I can't seem to figure out why my character staying a sliding state even after releasing shift and waiting the duration of the animation, one second. Do you have any insight as to why this might be happening?

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

      Nevermind

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

      @@loafocheese What ws the solution? I am having the same trouble.

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

      @@loafocheese what was the souloution

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

      @@SoloDevalog I added a transition in Animator from Slide to Idle with same settings like the opposite one but create a new condition called Idle and in code add another if condition on GetKeyUp to setTrigger("Idle")

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

    I just finished the Game manager scipt and it gives me the error "The type or namespace name 'gameObject' could not be found'. How can I fix this?

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

    Hello. I made everything so as you told in the video. But the game crashes when the enemy spawns and the enemy doesn't move. I'd be extremly happy if you tell why this happens.

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

      Most likely an infinite loop in your code

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

    Hey I'm getting an error cs0106: the modifier 'private' is not valid for this item.

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

      For the lineS with" private void OnCollisionEnter/Exit2D(Collision2d Other) "

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

    All assets from this video in my Patreon. patreon.com/BlakeyGames

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

    My coding isn’t working for my character

  • @Arthur-bl9xq
    @Arthur-bl9xq Год назад +2

    it makes the circle spawn but it does not show it

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

      i had this problem either

  • @Iam_sweat
    @Iam_sweat 7 месяцев назад

    why cant I jump?

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

    Would this be playable on a phone

  • @69420bet
    @69420bet Год назад

    why i get an error Assets\GameManager.cs(25,99): error CS1002: ; expected

    • @69420bet
      @69420bet Год назад +1

      i forgot to put an semicolom (sorry if i spell wrong)