Thanks for the tutorial! Currently making a little 2D sidescroller and found that if I changed the return value for actor location to z: -200 it works consistently.....I am a complete novice to this so no idea why that worked, but couldn't have done it without the rest of this code, so cheers! :D
@magegames6202Күн бұрын
skimmed through quick seems like what i need i have a game im making thats zelda like i wanna have the player get hurt and warp back to land if cant swim yet entering water deff have to tweak it but good starting point for this thank you
@CutThroatNeko2 ай бұрын
Hello, How would you deal with more complex environments ? Like having a landscape shaped like a cliff and some rock mesh put against it ? With that system, the trace got the slope part of the landscape and the rock meshes, and the respawn can occurs below them or in the slope.
@unsupporteddevice9 ай бұрын
you're a life saver thank you so much!
@IllusionistsBane Жыл бұрын
I used this solution for a 2D Platformer in Godot Engine. I just hope three Raycasts are enough in this case.
@AaronStumpDesings Жыл бұрын
Hope it works!
@mist3rtrixt3r2 жыл бұрын
So I followed this tutorial to the letter, and even watched it again to make sure I connected every pin correctly, and placed all the right nodes, but it is still not working. I jump off the edge of my level, and nothing happens when I hit the trigger box. I'm not sure what to do.
@AaronStumpDesings2 жыл бұрын
One thing I would recomend is start debugging. So if sometimes if something isn't working I start using a break point to see if things are being called. Start with the lintrace and make sure it is being called. If its being called go down the line to the next thing. Is the overlap working etc. To use a break point press f9 on a node.
@JusticeRios-p1v Жыл бұрын
Any update on the issue of getting caught on the edge and looping or not being respawned at all? Not sure how to really fix it.
@AaronStumpDesings Жыл бұрын
You can store multiple of those traces instead of just one and use the second location. So an array and add to the array. You can add an offset to the last location. You could add an offset to where the trace is being spawned. So instead of it being straight down make it behind the player. There are other options too, but there are a few ways.