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