How to make a checkpoint on Unity [EASIEST WAY]

  Рет қаралды 12,135

PavLos MavRis

PavLos MavRis

Күн бұрын

Welcome to my second tutorial on Unity.
In this video I will show you an easy way to implement a checkpoint mechanism using triggers. To support me please give a Like and subscribe for more upcoming tutorials.
Also please comment below if you want any specific to tutorial to see!!
SUBSCRIBE
/ pavlosmavris
#Unity #tutorial #gamedevelopment

Пікірлер: 58
@andreyandreev_sw
@andreyandreev_sw 3 жыл бұрын
Clean, easy, and it's working perfectly fine.
@riccardocasata9073
@riccardocasata9073 Жыл бұрын
agree
@oscar-vg2ns
@oscar-vg2ns 3 жыл бұрын
Thanks for this video! This really helped and was the only checkpoint tutorial that worked!
@muhammadgulzaib7567
@muhammadgulzaib7567 Жыл бұрын
so clean and short, to the point.
@khaleddergamer9075
@khaleddergamer9075 Жыл бұрын
danke für es Video es ist sehr gut für mein spiel und mein spiel heisst parkuhr Game probierts aus
@karma.codes_
@karma.codes_ 2 жыл бұрын
Very clean implementation and so helpful
@mmazuk1958
@mmazuk1958 2 жыл бұрын
Thank you!
@mistersali2501
@mistersali2501 Жыл бұрын
Hi, So I have A Problem. Did Everything like in the video(Except:The Flag is an 3d cube but also named flag_med ).I have an 1st Person JumpnRun Game and Added the Checkpoint. So, When I go on the Checkpoint it Dissapears, fine, that worked. Buuuut when my Player(PlayerCapsule) falls however from the platform, it doesnt respawn. It just falls and falls and falls. Im hoping for a Response :/
@ankitsharma-ud7tq
@ankitsharma-ud7tq Жыл бұрын
You have to put an collider down the world and if player collide with it then you can apply death function its simple to code
@krusski5162
@krusski5162 3 жыл бұрын
Thanks man you got subscribe!!
@talha_xxl
@talha_xxl Жыл бұрын
thank you bro!
@khaleddergamer9075
@khaleddergamer9075 Жыл бұрын
Das war sehr einfach zu machen 👍
@supser7827
@supser7827 3 жыл бұрын
thanks!!!
@newbpod
@newbpod 3 жыл бұрын
how did u get the blue ground texture.. also love the video! i liked it
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
It's a material that I created and you can do it too. Just right click in the assets folder then create -> Material and then for the settings of the material you can set a custom colour for your material, after you are finished you can drag and drop the material on your object that you want to change the colour.
@newbpod
@newbpod 3 жыл бұрын
@@PavLosMavRis VERY COOL im going to sub too ur scipt was so easy and just perfect!!
@newbpod
@newbpod 3 жыл бұрын
Sir once last question when i respawn i respawn at the checkpoint, But i cannot move my player... Thoughts?
@TheFortnitePacifist
@TheFortnitePacifist 2 жыл бұрын
Do u still need help i might be recommend brackeys respawn video that might help
@newbpod
@newbpod 3 жыл бұрын
helped so muchh
@arnauz11
@arnauz11 2 жыл бұрын
How i can make that: i spawn in point A, i walk a few meters and take the chackpoint B. What I would like is that when I leave the game and re-enter, I appear in point B
@PavLosMavRis
@PavLosMavRis 2 жыл бұрын
Stay tuned my friend because in the next days I will upload a new tutorial in which I will show you how to do that, but a little tip is to use an array or a list and contain all of your checkpoints and when you past a checkpoint save the index of the checkpoint with playerprefs from that list and when you come back to the game use the saved index to find your checkpoint from the array and spawn your player. Enjoy!!
@rychusan3837
@rychusan3837 2 жыл бұрын
Hi @PavLos MavRis how do i add more checkpoints if i want to ?
@PavLosMavRis
@PavLosMavRis 2 жыл бұрын
Hi @RychuSan, you can check my new video here kzbin.info/www/bejne/aIelo2WJndCLd7s which I show how to have as much checkpoints as you want.
@skelly2946
@skelly2946 3 жыл бұрын
thanks man, helped a lot
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
Glad to hear it!
@ankitsharma-ud7tq
@ankitsharma-ud7tq Жыл бұрын
will it work if i put more checkpoints and will it save checkpoints when getting out of play mode
@newbpod
@newbpod 3 жыл бұрын
2 things, 1.if i attach the scipt to the camera i will teleport back but just keep falling... 2. if i attach the script to my player i will respawn but not be able to move
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
The script should be on the player not on the camera
@Radikayudha
@Radikayudha 3 жыл бұрын
what should i do if the object destroy but cannot respawn in the checkpoint
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
Which object the flag(checkpoint) or the player?
@combatstriker512
@combatstriker512 3 жыл бұрын
How to FIx this"Assets\PlayerCheckPoint.cs(13,43): error CS1061: 'Transform' does not contain a definition for 'Position' and no accessible extension method 'Position' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)" Pls Help
@deppressedpepe5843
@deppressedpepe5843 3 жыл бұрын
how can i make the script recognise multiple other checkpoints instead of just the one
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
Actually depends on what exactly you want to make, you can make an array or list and then add inside every gameobject which is your flags, but if you want to make a game that if you collect a flag and move forward and you don't care for your previous checkpoints you can do a small change on the script. The code is like this: spawnPoint = flag.transform.position; Destroy(flag); change it into that: spawnPoint = other.gameObject.transform.position; Destroy(other.gameObject); What that change does simly it recognise which flag/checkpoint you pass and it will get rid of the previous checkpoint. And also you can delete the line which says public GameObject flag;
@antonymc6388
@antonymc6388 3 жыл бұрын
hey, check for this video, its very simple way to make an universal check point System : Unity 2021 - Universal CheckPoint System
@mmazuk1958
@mmazuk1958 2 жыл бұрын
Hello! The code was very good, but I failed to implement 2 checkpoints only 1. You can give advice?
@PavLosMavRis
@PavLosMavRis 2 жыл бұрын
Hello, you can check my latest video which is an updated version of how to create a checkpoint system. Through the video you can learn how to have multiple amount of checkpoints and also how to spawn from your last checkpoint after you exit and come back to your game. Enjoy!!
@mmazuk1958
@mmazuk1958 2 жыл бұрын
@@PavLosMavRis Thank you.
@rickyraffinazwankuntadi3893
@rickyraffinazwankuntadi3893 3 жыл бұрын
Can you share the script in Google Drive because I cannot following you I have a bad Microsoft visual 2019 please?
@kingiwakes_official
@kingiwakes_official 2 жыл бұрын
I've did everything and I got 8 errors
@PavLosMavRis
@PavLosMavRis 2 жыл бұрын
Hi @KingIWakes, can you please describe some of the errors and see if we can figure it out together? Also I have uploaded an updated version of the checkpoint system, you can check that too, it might solve your errors.
@newbpod
@newbpod 3 жыл бұрын
my player keeps respawning yes, but it teleports through the terrain... pls respond
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
Do you have collider components on the terrain and on your player?
@Mielesplayz
@Mielesplayz 3 жыл бұрын
how do you fix your character getting stuck in the air after dieing?
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
You get stuck or you falling without stoping (you can check your Y-Axis of your character for that) also do you get any error?
@Mielesplayz
@Mielesplayz 3 жыл бұрын
@@PavLosMavRis i dont fall anymore, when i respawn i just get stuck in the air. There is no error.
@Lache-ix2ho
@Lache-ix2ho 3 жыл бұрын
after respawning my character does not move, and I did everything the same as the video, you know what it can be?
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
I suppose you don’t get any error messages right? Are you using a rigidbody component to move your character, if yes make sure that the option “is Kinematic” is not enable and also the “constraints” are all disable.
@Lache-ix2ho
@Lache-ix2ho 3 жыл бұрын
@@PavLosMavRis I'm not using a rigidbody to move my character, but an FPS controller, and no error message appears, the player respawns, but from then on it doesn't move
@bubblessword8090
@bubblessword8090 3 жыл бұрын
Does thin only wprk for rigidbodies?
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
No, what you need to make it work is the colliders, the rigidbodie is used to apply physics to the ball and make it move around.
@bubblessword8090
@bubblessword8090 3 жыл бұрын
@@PavLosMavRis I was able to fix the issue. Auto sync transformations is off by default. So I turned it on. Thank you for the cool tutorial :)
@satyadev2011
@satyadev2011 Жыл бұрын
It is not working for me
@matthew6637
@matthew6637 3 жыл бұрын
how are you making the ball respawn back up on the blue ground when it falls off?
@hollowm.8416
@hollowm.8416 3 жыл бұрын
he set it up by the if statement after void update he set it to y -20f, meaning once it reaches -20 it sets back up to the designated spawn point which he did above that if(gameupdate.transfrom......
@PavLosMavRis
@PavLosMavRis 3 жыл бұрын
Basically i'm checking every frame, when the ball's position on the Y-Axis goes below -20 and when it goes below -20 i'm setting the ball's position to be equal with the spawnPoint which is a vector3.
@matthew6637
@matthew6637 3 жыл бұрын
@@hollowm.8416 Thank you
@matthew6637
@matthew6637 3 жыл бұрын
@@PavLosMavRis Thank you
@EmadShadiz
@EmadShadiz 8 ай бұрын
not work
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 709 М.
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,9 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 109 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 25 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 59 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,6 МЛН
How to Make A Simple HEALTH SYSTEM in Unity
7:15
BMo
Рет қаралды 60 М.
Can I Beat Subnautica Backwards?
13:24
Mono Aurelio
Рет қаралды 257 М.
Simple Checkpoint System in Unity
16:06
Code Monkey
Рет қаралды 47 М.
How to make a death block and a check point in unity
4:29
GameDevTutorials
Рет қаралды 2,2 М.
Unity C# Как создать чекпоинт
8:45
IT tuts
Рет қаралды 1,1 М.
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 1 МЛН
1 Year of Learning Game Development In 6 Minutes
6:01
Giedzilla
Рет қаралды 2,5 МЛН
How A Tournament Tried To Stop The Greatest Gamer Of All Time
8:46
Akshon Esports
Рет қаралды 414 М.
6 Years of Learning Game Development
9:02
Codeer
Рет қаралды 2,4 МЛН
SAVE and LOAD a checkpoint on Unity [NEWEST WAY]
7:18
PavLos MavRis
Рет қаралды 2,1 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 109 МЛН