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
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 :)
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
Жыл бұрын
this helped a lot! thanks!
@ItsLJames
Жыл бұрын
Thank you!
Very helpful, on the point, professional quality and good explanation. Subscribed
absolutely nice tutorial 🔥 keep making these useful videos 🔥
@morebblakeyyy
2 жыл бұрын
Thank you!!
i LOVE THIS VIDEO thank YOU
Good wrk bro
wow so good video so detailed so clear... thx for
thanks buddy!
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
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?
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
How do I instantiate and randomise multiple Obstacles?
All assets from this video in my Patreon. patreon.com/BlakeyGames
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
Жыл бұрын
it's probably because you added an "s" to .FindGameObjectWithTag
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
Жыл бұрын
Most likely an infinite loop in your code
Hey I'm getting an error cs0106: the modifier 'private' is not valid for this item.
@syedyousuffaizan1779
Жыл бұрын
For the lineS with" private void OnCollisionEnter/Exit2D(Collision2d Other) "
My coding isn’t working for my character
how do you get the floor and player that you start with at the beginning of the video?
@morebblakeyyy
2 жыл бұрын
Right click on the hierarchy 2D, sprites, square
@loafocheese
2 жыл бұрын
@@morebblakeyyy thank you
@loafocheese
2 жыл бұрын
@@morebblakeyyy Thank you! This tutorial really helped!
@DillonChal
Жыл бұрын
@@morebblakeyyy What was the solution?
@DillonChal
Жыл бұрын
Replied to wrong comment....my bad.
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
2 жыл бұрын
Nevermind
@DillonChal
Жыл бұрын
@@loafocheese What ws the solution? I am having the same trouble.
@SoloDevalog
Жыл бұрын
@@loafocheese what was the souloution
@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")
it makes the circle spawn but it does not show it
@danonets
Жыл бұрын
i had this problem either
why cant I jump?
Would this be playable on a phone
@morebblakeyyy
Жыл бұрын
It would need to be optimised for touch control
@connorbrookes3148
Жыл бұрын
@@morebblakeyyy how would you do that?
why i get an error Assets\GameManager.cs(25,99): error CS1002: ; expected
@69420bet
2 жыл бұрын
i forgot to put an semicolom (sorry if i spell wrong)