Fall/Die Respawn Tutorial | Unity 3D FPS

  Рет қаралды 5,975

NightTime Developments

NightTime Developments

Күн бұрын

Пікірлер: 49
@SiafSenan-hr3lm
@SiafSenan-hr3lm 5 ай бұрын
Thanks so much bro, thanks to you I’m able to finish my game I’ve been looking for something like this for 2 days
@Osoclever
@Osoclever 10 ай бұрын
Thank you 😊
@youz123
@youz123 Жыл бұрын
here's how to do it with tag for those wondering [SerializeField] private Transform player; [SerializeField] private Transform respawnPoint; void OnTriggerEnter2D(Collider2D col) { if(col.tag == "Player") { player.transform.position = respawnPoint.transform.position; } }
@ghostgrimoire2748
@ghostgrimoire2748 2 жыл бұрын
Thank you very mutch!!
@Firegod8134
@Firegod8134 6 ай бұрын
I keep falling through the floor my colliders are on and auto sync transform in on any idea how to fix it.
@NightTimeDevelopments
@NightTimeDevelopments 6 ай бұрын
colliders On on both the floor and character
@Firegod8134
@Firegod8134 6 ай бұрын
@@NightTimeDevelopments thx
@Nobody15373
@Nobody15373 2 жыл бұрын
thxs bro for a short and ez tutorial not like those 1h videos
@NightTimeDevelopments
@NightTimeDevelopments 2 жыл бұрын
I know right. I happy to help, just like and sub
@anavpatel7616
@anavpatel7616 Жыл бұрын
TY :D
@_uriah_
@_uriah_ 2 ай бұрын
It doesn't work (My colliders are on...and I followed the tutorial STEP BY STEP and it still doesn't work)
@_uriah_
@_uriah_ 2 ай бұрын
I just used this script instead. It restarts the scene, so it works the same unless you have multiple triggers, then it won't work: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Respawn : MonoBehaviour { void OnTriggerEnter(Collider player) { SceneManager.LoadScene(SceneManager.GetActiveScene().name); Debug.Log("Scene Restarted"); } }
@NightTimeDevelopments
@NightTimeDevelopments 2 ай бұрын
what exactly doesn't work?
@_uriah_
@_uriah_ 2 ай бұрын
@@NightTimeDevelopments So I added a Debug statement and the Debug showed in the console, but then I realized my player would respawn, but the camera would stay down there. It was really confusing and I couldn't figure it out so I reset the scene instead.
@Cole-wb9mu
@Cole-wb9mu 4 ай бұрын
i keep falling through the floor under the respawn
@NightTimeDevelopments
@NightTimeDevelopments 4 ай бұрын
Your collider is probably off
@Averagedud3
@Averagedud3 16 күн бұрын
the cube is touching your floor
@salaheddine9251
@salaheddine9251 2 жыл бұрын
Hi, my player just goes trough the trigger and I get the notification "'the variable respawnpoint has not been assigned""
@NightTimeDevelopments
@NightTimeDevelopments 2 жыл бұрын
Did you put the script right and plug in a triger that is static
@LotOFfactories
@LotOFfactories Жыл бұрын
I SUB
@megaa973
@megaa973 2 жыл бұрын
Is there a way to make it so If i get a certain way through the game the respawn point changes? because mine is an obstical course
@NightTimeDevelopments
@NightTimeDevelopments 2 жыл бұрын
yeah
@clocubed5257
@clocubed5257 2 жыл бұрын
it works great however if things fall off other than people the respawn platform moves up and down and destroys my map no idea how to fix this
@webpro8108
@webpro8108 2 жыл бұрын
It is because they are all joined in as 1 under the same layer mask
@subabo12
@subabo12 2 жыл бұрын
@@webpro8108 How do you change the objects layer mask? i tried doing this but i cant figure it out. I dont know what to change on the script.
@webpro8108
@webpro8108 2 жыл бұрын
@@subabo12 it is not the script, it is in the object menu, the video showed that
@Ackvideoadventures
@Ackvideoadventures 2 жыл бұрын
Didn’t work at all it broke my whole game forcing me to restart, and yes I did everything you said!
@thesmartkoala6900
@thesmartkoala6900 Жыл бұрын
the same thing happened to me too
@funpa2516
@funpa2516 Жыл бұрын
@@thesmartkoala6900 i was respawned inside of my ground and once i fixed that part the world didnt render properly. everything worked again when i deleted the script. odd
@pysora6259
@pysora6259 2 жыл бұрын
It doesn't work to me, I just keep falling
@NightTimeDevelopments
@NightTimeDevelopments 2 жыл бұрын
The collider is probably not on
@pysora6259
@pysora6259 2 жыл бұрын
@@NightTimeDevelopments I already figured out what was wrong, I needed to activate on project settings "auto sync transform"
@webpro8108
@webpro8108 2 жыл бұрын
@@pysora6259 nice
@ClicksIgloo
@ClicksIgloo 2 жыл бұрын
Thanks you so much @PySoRa I had the same problem
@bastman-_-2963
@bastman-_-2963 Жыл бұрын
@@pysora6259 THANK UUUUUUUUUUUUUUUUUUUUUUU
@bastman-_-2963
@bastman-_-2963 Жыл бұрын
i just pass throught the floor
@NightTimeDevelopments
@NightTimeDevelopments Жыл бұрын
your colider is off
@bobbville
@bobbville 2 жыл бұрын
This was a major struggle for me in 2d! Like and sub from me! 🔥🔥🔥
@NightTimeDevelopments
@NightTimeDevelopments 2 жыл бұрын
Thanks 😎
@LotOFfactories
@LotOFfactories Жыл бұрын
@@NightTimeDevelopments WOW
@LotOFfactories
@LotOFfactories Жыл бұрын
@@NightTimeDevelopments njowuidhjmew
@LotOFfactories
@LotOFfactories Жыл бұрын
@@NightTimeDevelopments 2miwkl;
@LotOFfactories
@LotOFfactories Жыл бұрын
@@NightTimeDevelopments .neijdlwq'
Combining a Gun with a Grappling Gun | Unity 3D Tutorial
3:49
NightTime Developments
Рет қаралды 421
I Made Among Us, but it's 3D
15:56
Dani
Рет қаралды 20 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 130 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 48 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
FIRST PERSON MOVEMENT in Unity - FPS Controller
23:53
Brackeys
Рет қаралды 3,2 МЛН
How the Buckshot Roulette Dealer AI works (and how you can use it to win)
24:18
I Made a Game Using ChatGPT
9:51
Rye
Рет қаралды 2,8 МЛН
Simple Checkpoint System in Unity
16:06
Code Monkey
Рет қаралды 48 М.
I Built a Robot that Plays FPS Games
21:23
Basically Homeless
Рет қаралды 885 М.
How to make a death block and a check point in unity
4:29
GameDevTutorials
Рет қаралды 2,2 М.
Hmmmmmm Alex...
8:24
Phoenix SC
Рет қаралды 508 М.
How to Make Grappling Gun in Unity (Tutorial)
10:23
DanisTutorials
Рет қаралды 867 М.
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 5 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 130 МЛН