2D Infinite Runner Unity Tutorial

Ойындар

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 Жыл бұрын

    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 Жыл бұрын

    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

    Жыл бұрын

    Thank you!

  • @viraj3944
    @viraj39449 ай бұрын

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

  • @parsa26
    @parsa262 жыл бұрын

    absolutely nice tutorial 🔥 keep making these useful videos 🔥

  • @morebblakeyyy

    @morebblakeyyy

    2 жыл бұрын

    Thank you!!

  • @Rfxa_
    @Rfxa_ Жыл бұрын

    i LOVE THIS VIDEO thank YOU

  • @Rfxa_
    @Rfxa_ Жыл бұрын

    Good wrk bro

  • @serdarkaya4557
    @serdarkaya4557 Жыл бұрын

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

  • @Mballs2478
    @Mballs24788 ай бұрын

    thanks buddy!

  • @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

  • @FaneOnYT
    @FaneOnYT Жыл бұрын

    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?

  • @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

  • @viraj3944
    @viraj39449 ай бұрын

    How do I instantiate and randomise multiple Obstacles?

  • @morebblakeyyy
    @morebblakeyyy Жыл бұрын

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

  • @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?

  • @afm_catalyststudio7196

    @afm_catalyststudio7196

    Жыл бұрын

    it's probably because you added an "s" to .FindGameObjectWithTag

  • @versal307
    @versal3072 жыл бұрын

    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

    Жыл бұрын

    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) "

  • @droxzyfn
    @droxzyfn Жыл бұрын

    My coding isn’t working for my character

  • @loafocheese
    @loafocheese2 жыл бұрын

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

  • @morebblakeyyy

    @morebblakeyyy

    2 жыл бұрын

    Right click on the hierarchy 2D, sprites, square

  • @loafocheese

    @loafocheese

    2 жыл бұрын

    @@morebblakeyyy thank you

  • @loafocheese

    @loafocheese

    2 жыл бұрын

    @@morebblakeyyy Thank you! This tutorial really helped!

  • @DillonChal

    @DillonChal

    Жыл бұрын

    @@morebblakeyyy What was the solution?

  • @DillonChal

    @DillonChal

    Жыл бұрын

    Replied to wrong comment....my bad.

  • @loafocheese
    @loafocheese2 жыл бұрын

    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

    2 жыл бұрын

    Nevermind

  • @DillonChal

    @DillonChal

    Жыл бұрын

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

  • @SoloDevalog

    @SoloDevalog

    Жыл бұрын

    @@loafocheese what was the souloution

  • @Andrej73Andrej

    @Andrej73Andrej

    Жыл бұрын

    @@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")

  • @Arthur-bl9xq
    @Arthur-bl9xq Жыл бұрын

    it makes the circle spawn but it does not show it

  • @danonets

    @danonets

    Жыл бұрын

    i had this problem either

  • @Iam_sweat
    @Iam_sweat8 ай бұрын

    why cant I jump?

  • @connorbrookes3148
    @connorbrookes3148 Жыл бұрын

    Would this be playable on a phone

  • @morebblakeyyy

    @morebblakeyyy

    Жыл бұрын

    It would need to be optimised for touch control

  • @connorbrookes3148

    @connorbrookes3148

    Жыл бұрын

    @@morebblakeyyy how would you do that?

  • @69420bet
    @69420bet2 жыл бұрын

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

  • @69420bet

    @69420bet

    2 жыл бұрын

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

Келесі