Hey Matt, it would be amazing if you could make a video of being able to use the respawn with the game over retry menu, so that when you get the game over menu you can click respawn at last checkpoint.
I think it can be better if we set a default value for the Transform variable and set it to players first location when he starts in the map, because when we dont go into the checkpoint and die, we will spawn on the 0 point of the map.
Hi thank you for the tutorial but I have a small question so my character every time after respawning is getting bigger and I don’t know how to fix it plz help if you know how to thank you.
I have a pretty big problem going on when using this. The whole thing works perfectly on its own, but in my level I have a few things that work using a reference to my First Person Character. Since the player is destroyed and replaced by a new one, the character references no longer work. How would I go about making it so variables and references are kept with each respawn?
If everything you want to save is in the player controller class nothing will reset. You could also create dying but not destroying the actor such as hitting a certain hp then play a animation similar to dying and then a game over screen that spawn the actor back to the last CP
Hello friend, good video, but I have a little problem, look, I have a SideScrollerCharacter 3D and implement this system, but it happens to me that once the character reappears, it appears decentralized from my platform and the camera appears closer to the character, can you help me?
hmmmm, here is my question, in multiplayer, if I wanted the player who join to spawn on a moving ship in the host level, should I add that target point to the ship?! and will that override the player start in the level?!
Hey Matt I dont know if you read this, but I want to say thank you! Im having my final test of unreal and I couldn't understand anything until I watched your videos! you are a great teacher! I use this method of respan and it works! the thing is... every time I die, I respawn at the checkpoints, but a diferent third person character spawns in the beggining of the game too (every time I die, more appears) do you know why could this be?
Hello! This tutorial really helped me with my checkpoint system. The only problem I am having is that my main widget does not come back after the character respawns. Is there a fix for this?
@@azngf Run the RestartLevel console command via an "Exec Console Command" Blueprint Node and handle your player spawn logic like in the video but also set the initial transform for the player starting point.
Great video. Your tutorials are helping me a lot. I have a suggestion. It would be awesome if we can put different default spawn locations in the start menu (options) and the player can choose where to spawn, especially for virtual field visits. Don't know how though.
thanks for the tutorial but i have a problem the checkpoints work how they are supposed to whenever i die i spawn at my most recent checkpoint but a new "thirdpersoncharacter" spawns at the start of the level any idea on how to fix?
Thanks for the tutorial. Some questions I have: 1. My character will respawn at the respawn location if I press "K", but not if I die from traps or whatever. 2. The character will also enlarge everytime it dies from using "K" as a death method. Any ideas on problemsolving would be highly appreciated.
"but not if I die from traps or whatever." Did you find out? I think K is bound only to destroying the Char, while destroy is a specific death method. I think died by traps (set health = 0), is not covered by Destroyed? Mine doesnt even work when I press K, since I have a HUD popping up. I bound 1 button to trigger Event Respawn. But it does nothing, because K is bound to my "death" function, which is in my player BP. And I cant bind Event Death in the GameMode BP??
nice and simple but i think the Transform is better if based on the checkpoint, and not how you arrive (but i understand that way the tutorial was faster)
In this example you would need to destroy the actor, where I bind the event, you could maybe bind a different event for your health reaching a certain value, i.e. 0. But I've just looked into this and couldn't get it to work so you might not be able to. I think it has to be on destroyed, essentially, where I bind, that is what the condition is. If you know what I mean.
@@MattAspland Can anyone answer, what does UE's "destroy" actually mean in a player-game mode? If player is "destroyed" then spawned, Does it know to reset health etc, like if it was a real game? Or is UE just performing a code destroy (with no meaning to a game), where it destroys the actor/BP from memory? (i.e. were the devs smart enough to do the job for us, and code in that if "destroy" is used on a character, not a mere rock mesh, that the engine is smart enough to reset player specific values?)
I have a few widgets that show EXP and currency and when I collect anything it wipes it on death. I think because it spawns back another version on the original player?
Hey Matt, so I've been diving into solo dev work, and your videos really help me. However, I'm having a small issue on this one. When my character respawns at the checkpoint, the camera doesn't follow suit. Instead the camera stays locked at where they died. How do I fix this? I feel it's a simple fix, but just something I'm missing
What a great tutorial! But right now I'm struggled with a problem. My Character only respawn for once and when it dies for the second time it won't respawn. Thank you for the tutorial anyway!
Great Video, But I still have one Problem. So my player dies (Character Blueprint Destroys) the respawn system works perfectly but let's say if I died somewhere ang ghost killed me so when my player respawns the ghost should be doing the thing that it was doing before and the whole envoirnment should be same as it was before respawning , How do I achieve that? Thanks @Matt
Hey Matt, thanks for the tutorial but my character doesn't respawns after death, it just lay down there after playing death animation, and nothing happens, I exactly followed you. Please help 🙏
So this is basically advancing spawn points that the check point can be in or near a capture area for instance and if the player dies after reaching the check point he will spawn is the previous check point instead of the first??
Love the tutorial. However the checkpoints obviously don't reset or respawn enemies/other actors I have in their starting positiions. Any idea how I'd go about doing that?
Maybe you would just want to restart the level? Or you could get the enemies transform when the game starts, save it as a variable. Then teleport them back to that position when you die.
@@skintalker1 yeah it's looking that way but it is going to be a pain in the arse in any case. Badically I want everything in the level to be the way it was but to just have the player spawn in a different location once they've passed the checkpoint. As it stands my enemies and other actors get triggered on the first run-through but don't come back the original states once I've died respawned at the checkpoint. I'm yet to find an effective way of either bringing back all the actors or teleporting the player once that checkpoint has been reached.
Hi Matt. I have followed this tutorial with great success. Thanx. I just want to know if maybe you could help me with a problem I have? I have made a widget with a quit to main menu, quit to windows and load on last checkpoint. The first buttons work perfect , but i do not know how to bring this respawn together and make it work with my loud last checkpoint button. Please help. This will help a lot of other people to. Thanx again for all the awesome tuts. 🤩🤩
Hi Stefan, that's great to hear! What you could do, is when you press the "Load Checkpoint" button, you would cast to your character blueprint and out of "As Third Person Character", or whatever yours is named, "Set Actor Transform" with the transform as "Get Spawn Transform" out of the cast again. I hope this helps, let me know if you need any more help with it :)
Hi Matt. I have tried what you said and it does not work. On pressed I did cast to my character then set actor transform . And this is where the bolls-up is. I need a object reference in my cast to player , so i put get player character? Is this right? It do not allow me to drag and get spawn transform from cast to my character. I can drag and get spawn transform from new transform,but can not connect it to cast to node. Hope this make sense. 😭. Please help.
@@quentin3359 Hey, don't worry about it. You're not bad. If you just place the checkpoint blueprint in a new level, does it not work as a checkpoint anymore?
Hey there! Im really struggling here as my character is never getting posessed, the camera is just stuck where it overlapped the box but the car seemingly never respawns in my posession. Any ideas?
I just realized that in the GameMode Event Graph under "Cast to ThirdPerson Character I did not connect the "As third person character" to the "Target" under "Bind Event to On Destroyed" after doing that it works for me
Your tutorials are really awesome Matt, and I appreciate them so much as they've helped with alot in my game. That said however, they are very one sided, and only work when done the specific way. For example, my character doesn't 'die' they ragdoll when they hit a 'deathbox' then screen fades to black and then the level restarts. I was hoping to apply this to it, but this solely relies on 'destroyed actor' which doesn't work for a ragdoll death.
Hiya, great video btw, But I do have a small bug. I'm using the fp Template and I've done nothing to the player but add a: dash , Double jump And crouching system. I don't know why but the player gets smaller and smaller every time they die by a LARGE margin. Just wondering if this is a bug anyone knows how to fix. Thanks for taking the time to read this. :)
Hey, you should be able to just right click and search for it. It might be at the bottom of the search, if it still isn't there you can un-tick "context sensitive" in the top right of the search box. Hope this helps, and thank you! :)
Dude thanks for this it really works! but there's just a problem, when i die without getting a checkpoint, i just spawn on the air, is there a way to fix it?
Great man, and yep. If we select the "Spawn Transform" and set the default value in the location to where you want the player to spawn by default (Without a checkpoint) that should work :)
@@CromjCromo What you could do is off of "Event Begin Play" in the level blueprint, you can cast to our game mode BP and set the "Spawn Transform" to have the location you want in that level
It does not work for me. When I press K button, then my character doesn't respawn. Also what do I have to do when I have other code that begins with ,,event begin"?
Mine wasn't working but realised in ThirdPersonGameMode the 'Bind Event to On Destroyed' node had no target. I forgot to connect the 'As Third Person Character' output from the 'Cast To Third Person Character'. Connect this and maybe its helps. 2:02 in the video
That's a great idea thank you, I've written it down so hopefully I can get around to it. I've done a save and load video, but merging that and this respawn video could be good, thanks again!
Great tutorial as always!! But if anyone can help me with this problem, im also using Matt's "Game over screen" tutorial and when using the button to try again it just opnes up the level again instead of the respawn. Any help is appreciated
Hi, is this different place 0,0,0? If so, you won't be setting the "Spawn Transform", or you aren't using it. This is a good place to look, or you could send some screenshots of your code and I'll take a look?
@@alielhefnawey5764 No problem :) And I'd recommend making sure that the scale in the spawn transform is the same as your character's transform then, it sounds like it has differing scales.
@@MattAspland I checked it and it is same The first time it spawns correctly and the second time player become thin :( Edit: Thanks for you , it works :)
Hi matt! Idk if u can see this but i really need your help . How can i set the third person character to spawn at a certain spot after being caught by an enemy?
Hey Matt, it would be amazing if you could make a video of being able to use the respawn with the game over retry menu, so that when you get the game over menu you can click respawn at last checkpoint.
Your tutorials are always amazing
Please do more tutorials on parkour. And thank you so much you're helping me so much with my project.
I'm definitely working on it! And no problem, happy to hear that :)
That was really easy to follow. You have a great way of explaining the nodes and what they do. Thanks!
That's one nice tutorial dude thanks works perfectly
I think it can be better if we set a default value for the Transform variable and set it to players first location when he starts in the map, because when we dont go into the checkpoint and die, we will spawn on the 0 point of the map.
Hi thank you for the tutorial but I have a small question so my character every time after respawning is getting bigger and I don’t know how to fix it plz help if you know how to thank you.
Bro, YOR R THE BEST!!
I don't know if anyone will see this. But Im just curious if this will work in unreal 5?
I have a pretty big problem going on when using this.
The whole thing works perfectly on its own, but in my level I have a few things that work using a reference to my First Person Character. Since the player is destroyed and replaced by a new one, the character references no longer work.
How would I go about making it so variables and references are kept with each respawn?
If everything you want to save is in the player controller class nothing will reset. You could also create dying but not destroying the actor such as hitting a certain hp then play a animation similar to dying and then a game over screen that spawn the actor back to the last CP
Yet another great video thank you so much.
Great Video :)
Gr8 Tutorial man! Helped out a ton :) Quick and easy :D
Thank you! And no problem, happy to help :)
Simple and effective, thanks mate
Hello blogger, I am a novice in ue. I would like to ask why after I press the k key, the character disappears and the entire ue system crashes.
⭐⭐⭐⭐⭐
Very clear and to the point 👍
nice tutorial. Kudos!
Amazing!
Excellent tutorial. Thanks!
Thank you, and no problem! :)
Thank you for this video it's helped me a lot with my project I need to get done
Good Stuff Matt
Thank you James :)
Hello friend, good video, but I have a little problem, look, I have a SideScrollerCharacter 3D and implement this system, but it happens to me that once the character reappears, it appears decentralized from my platform and the camera appears closer to the character, can you help me?
Amazing stuff! You really helped me!
Thank you so much! Always happy to help :)
very nice! thank you bro
what can i do if i want that my third person character dies after ciliding with a specific object?
hmmmm, here is my question, in multiplayer, if I wanted the player who join to spawn on a moving ship in the host level, should I add that target point to the ship?! and will that override the player start in the level?!
Hey Matt I dont know if you read this, but I want to say thank you! Im having my final test of unreal and I couldn't understand anything until I watched your videos! you are a great teacher!
I use this method of respan and it works! the thing is... every time I die, I respawn at the checkpoints, but a diferent third person character spawns in the beggining of the game too (every time I die, more appears) do you know why could this be?
Hello! This tutorial really helped me with my checkpoint system. The only problem I am having is that my main widget does not come back after the character respawns. Is there a fix for this?
hey mat how would you implement a reset level with this code so that you still respawn at a checkpoint & and the level resets?
That's what I want to know.
@@azngf Run the RestartLevel console command via an "Exec Console Command" Blueprint Node and handle your player spawn logic like in the video but also set the initial transform for the player starting point.
@@Cloroqx Ah, thank you! :)
Great video. Your tutorials are helping me a lot. I have a suggestion. It would be awesome if we can put different default spawn locations in the start menu (options) and the player can choose where to spawn, especially for virtual field visits. Don't know how though.
thanks dude
10/10 tutorial
Thanks for the tutorial❤
No problem! :)
Thanks bro
thanks for the tutorial but i have a problem the checkpoints work how they are supposed to whenever i die i spawn at my most recent checkpoint but a new "thirdpersoncharacter" spawns at the start of the level any idea on how to fix?
can you tell which version you are on pls
Thanks for the tutorial.
Some questions I have:
1. My character will respawn at the respawn location if I press "K", but not if I die from traps or whatever.
2. The character will also enlarge everytime it dies from using "K" as a death method.
Any ideas on problemsolving would be highly appreciated.
"but not if I die from traps or whatever."
Did you find out? I think K is bound only to destroying the Char, while destroy is a specific death method. I think died by traps (set health = 0), is not covered by Destroyed?
Mine doesnt even work when I press K, since I have a HUD popping up. I bound 1 button to trigger Event Respawn. But it does nothing, because K is bound to my "death" function, which is in my player BP.
And I cant bind Event Death in the GameMode BP??
nice and simple
but i think the Transform is better if based on the checkpoint, and not how you arrive (but i understand that way the tutorial was faster)
Hey how to stop the Lyra ended and restart the game?
Hey matt, does this work with a character using health bar without necessarily destroying it?
In this example you would need to destroy the actor, where I bind the event, you could maybe bind a different event for your health reaching a certain value, i.e. 0. But I've just looked into this and couldn't get it to work so you might not be able to. I think it has to be on destroyed, essentially, where I bind, that is what the condition is. If you know what I mean.
@@MattAspland I see... Thanks! Maybe after the character is dead, I can put a delay and then destroy it so that way it'll work
Yeah that could work, good luck with it :)
@@MattAspland Can anyone answer, what does UE's "destroy" actually mean in a player-game mode? If player is "destroyed" then spawned, Does it know to reset health etc, like if it was a real game? Or is UE just performing a code destroy (with no meaning to a game), where it destroys the actor/BP from memory?
(i.e. were the devs smart enough to do the job for us, and code in that if "destroy" is used on a character, not a mere rock mesh, that the engine is smart enough to reset player specific values?)
I have a few widgets that show EXP and currency and when I collect anything it wipes it on death. I think because it spawns back another version on the original player?
thanks, useful stuff!
No problem! Happy to help :)
Thank you Matt
No problem!
Hey Matt, so I've been diving into solo dev work, and your videos really help me. However, I'm having a small issue on this one. When my character respawns at the checkpoint, the camera doesn't follow suit. Instead the camera stays locked at where they died. How do I fix this? I feel it's a simple fix, but just something I'm missing
thank you
What a great tutorial! But right now I'm struggled with a problem. My Character only respawn for once and when it dies for the second time it won't respawn. Thank you for the tutorial anyway!
Great Video, But I still have one Problem.
So my player dies (Character Blueprint Destroys) the respawn system works perfectly but let's say if I died somewhere ang ghost killed me so when my player respawns the ghost should be doing the thing that it was doing before and the whole envoirnment should be same as it was before respawning ,
How do I achieve that?
Thanks @Matt
How to do it for multiplayer
I cant move when I respawn, I can move my camera but the player doesnt move any help please?
Cool thanks,🙏 i need this 😇😁👍
No problem, happy to help! :)
Hey Matt, thanks for the tutorial but my character doesn't respawns after death, it just lay down there after playing death animation, and nothing happens, I exactly followed you. Please help 🙏
So this is basically advancing spawn points that the check point can be in or near a capture area for instance and if the player dies after reaching the check point he will spawn is the previous check point instead of the first??
Essentially yeah, the player will spawn back in at the last checkpoint they went through
@@MattAspland Awesome Man I have been searching for this for ever it seems. I will be adding this to my FPS project asap!
Happy to provide it for you, good luck with it :)
I am trying this in UE5.0.3 and it just crashes the game when the player is killed. Anyone have any ideas on how to fix this?
This tutorial seems to do nothing but crash my game or break things.
Something you should really do is add print string developer and sound cue only to say something like checkpoint reached to test this.
Love the tutorial. However the checkpoints obviously don't reset or respawn enemies/other actors I have in their starting positiions. Any idea how I'd go about doing that?
Maybe you would just want to restart the level? Or you could get the enemies transform when the game starts, save it as a variable. Then teleport them back to that position when you die.
@@skintalker1 yeah it's looking that way but it is going to be a pain in the arse in any case. Badically I want everything in the level to be the way it was but to just have the player spawn in a different location once they've passed the checkpoint. As it stands my enemies and other actors get triggered on the first run-through but don't come back the original states once I've died respawned at the checkpoint. I'm yet to find an effective way of either bringing back all the actors or teleporting the player once that checkpoint has been reached.
hey mat my camera is turning in circles everytime i die
HELP !!! I can't get it to work in multiplayer, the player who hosts respawns but not the others
Hi Matt. I have followed this tutorial with great success. Thanx. I just want to know if maybe you could help me with a problem I have? I have made a widget with a quit to main menu, quit to windows and load on last checkpoint. The first buttons work perfect , but i do not know how to bring this respawn together and make it work with my loud last checkpoint button. Please help. This will help a lot of other people to. Thanx again for all the awesome tuts. 🤩🤩
Hi Stefan, that's great to hear! What you could do, is when you press the "Load Checkpoint" button, you would cast to your character blueprint and out of "As Third Person Character", or whatever yours is named, "Set Actor Transform" with the transform as "Get Spawn Transform" out of the cast again. I hope this helps, let me know if you need any more help with it :)
Hi Matt. I have tried what you said and it does not work. On pressed I did cast to my character then set actor transform . And this is where the bolls-up is. I need a object reference in my cast to player , so i put get player character? Is this right? It do not allow me to drag and get spawn transform from cast to my character. I can drag and get spawn transform from new transform,but can not connect it to cast to node. Hope this make sense. 😭. Please help.
you saved my ass man, thanks
It works, but when you create a new layer, how do you make it work too? I'm probably not very good at it...
Hi, sorry but what do you mean by a new layer? Do you mean new level, if so it should all still work the same.
@@MattAspland Uh yes level, I was wrong. In the same way... and well I'll try again in this case!
@@quentin3359 Okay no worries, let me know how it goes. When you set the transform, it should set it local to that level.
@@MattAspland Well I must be pretty bad because I can't do it, I don't understand how to do the same thing again for another level...
@@quentin3359 Hey, don't worry about it. You're not bad. If you just place the checkpoint blueprint in a new level, does it not work as a checkpoint anymore?
Hi, im new to unreal, so can enione tell me how to teleport the player to the checkpoint instead of deleting it when the player is killed?
Could not get actor transform. I had to turn off context sensitivity for some reason?
That would probably mean what you were dragging out of to get it couldn't use it. But you've got it so that's all good! :)
How do I cast this to multiple player characters?
Nevemind I figured it out!
hello, this hasnt worked for me, my player respawns where my camera was...
Hey there! Im really struggling here as my character is never getting posessed, the camera is just stuck where it overlapped the box but the car seemingly never respawns in my posession. Any ideas?
I am finding the same problem and I'm not sure why this is happening
I just realized that in the GameMode Event Graph under "Cast to ThirdPerson Character I did not connect the "As third person character" to the "Target" under "Bind Event to On Destroyed" after doing that it works for me
one more question, does unrealm have an engine to design characters?
Inside of Unreal, not really, but some good free ones are Adobe Fuse and mixamo.com. There are more, but off the top of my head, those two are great.
does this program have any cost?
Nope, they are both free to use commercially :)
ı don't have "set spawn transform" code
Your tutorials are really awesome Matt, and I appreciate them so much as they've helped with alot in my game. That said however, they are very one sided, and only work when done the specific way. For example, my character doesn't 'die' they ragdoll when they hit a 'deathbox' then screen fades to black and then the level restarts. I was hoping to apply this to it, but this solely relies on 'destroyed actor' which doesn't work for a ragdoll death.
did you solve this? got the same damn issue :D
Hiya, great video btw, But I do have a small bug.
I'm using the fp Template and I've done nothing to the player but add a: dash , Double jump And crouching system. I don't know why but the player gets smaller and smaller every time they die by a LARGE margin. Just wondering if this is a bug anyone knows how to fix.
Thanks for taking the time to read this. :)
The problem was the crouch (It interfered with the spawn transform)
It doesnt seem to work with 2D games, i cant seem to get set transform and i think that is why.
8:11 how do u do this? cant find this xD - Great video :)
Hey, you should be able to just right click and search for it. It might be at the bottom of the search, if it still isn't there you can un-tick "context sensitive" in the top right of the search box. Hope this helps, and thank you! :)
@@MattAspland thx! :)
Dude thanks for this it really works! but there's just a problem, when i die without getting a checkpoint, i just spawn on the air, is there a way to fix it?
Great man, and yep. If we select the "Spawn Transform" and set the default value in the location to where you want the player to spawn by default (Without a checkpoint) that should work :)
@@MattAspland but what if there's multiple levels with different spawn locations?
@@CromjCromo What you could do is off of "Event Begin Play" in the level blueprint, you can cast to our game mode BP and set the "Spawn Transform" to have the location you want in that level
It does not work for me. When I press K button, then my character doesn't respawn.
Also what do I have to do when I have other code that begins with ,,event begin"?
Mine wasn't working but realised in ThirdPersonGameMode the 'Bind Event to On Destroyed' node had no target. I forgot to connect the 'As Third Person Character' output from the 'Cast To Third Person Character'.
Connect this and maybe its helps. 2:02 in the video
Can you please help me, I have done everything but when I try to place my checkpoint down it does happen
Hey, do you mean you can't place the checkpoint BP in your level?
@@MattAspland no I mean like I can place it and it works and everything. But when I play the game it turn invisible
@@TheBT_ Right okay, well which part do you want to be visible? Because the box collision and arrow are hidden by default
@@MattAspland I would like the arrow and sphere to be visible
@@TheBT_ Right okay, what you can do is in the blueprint, select the arrow and un-tick "hidden in game" and do the same with the sphere collision :)
how do i make so i can only do that 5 times
is this already obsolete or is my engine broken? alot of things arent showing up for me here
Hi, this should still be working, people have been using it recently. What engine version are you using?
It might be cool to expand this and have a save state in UE4 - where you die and it reverts to how the game was when you died.
That's a great idea thank you, I've written it down so hopefully I can get around to it. I've done a save and load video, but merging that and this respawn video could be good, thanks again!
@@MattAspland ah sorry, didn’t realised you had done it! Only just found your videos recently (hence the spam) haha
No worries, always love the feedback and ideas :)
Haha thank you, I appreciate the spam anyway so all good
The checkpoints don't work and I can't respawn?
for me there is no cast to third person character. helppp
nvm got it
Great tutorial as always!! But if anyone can help me with this problem, im also using Matt's "Game over screen" tutorial and when using the button to try again it just opnes up the level again instead of the respawn. Any help is appreciated
it make me respawn in a different place I don't know why
Hi, is this different place 0,0,0? If so, you won't be setting the "Spawn Transform", or you aren't using it. This is a good place to look, or you could send some screenshots of your code and I'll take a look?
@@MattAspland Actually it spawning but it changes its size ((It makes it thinner))
AND THANKS FOR YOUR REPLY
@@alielhefnawey5764 No problem :)
And I'd recommend making sure that the scale in the spawn transform is the same as your character's transform then, it sounds like it has differing scales.
@@MattAspland I checked it and it is same
The first time it spawns correctly and the second time player become thin :(
Edit:
Thanks for you , it works :)
Hi matt! Idk if u can see this but i really need your help . How can i set the third person character to spawn at a certain spot after being caught by an enemy?
My character reappears in the place where I die, help me please !
Hi, make sure you are setting and using our "Spawn Transform" correctly according to the video. Is it all the same?
@@MattAspland It's ok, i didn't fill in the location info in the Transform, thanks !
@@quentin3359 Ah great, glad you got it solved :)
i can use it for my game!
Sounds great! :)
how to make a game over screen after you die in 5 times
Matt hahaha... I get smaller and smaller every time i respawn...
Thanks mate