I did everything I was supposed to: The character’s tag is “Player”, I named the tag for the object, I checked the “Box Collider 2D” box I also checked the “is Trigger” box then I looked up videos and tried some different ways to code it but nothing works, I spent so long trying to get this to work. I am using the latest version of Unity and in 2D.
When I write the code, do I need to include the code in the “Player Controller” too and if so where in that do I put it (only code there is the default code, I didn’t add anything to it)?
What will the code look like? I want to get this part working first before I try to get respawn to work, which I tried too but failed…
what is he doing there? He is doing something from the hierarchy. He said “lets add that script to it” but wasn’t he dragging something from the hierarchy?
Did you add the “KillPlayer” script? That’s what he adds to the collider.
Not sure what the contents are, but given that it takes a spawn point as a field it might just be setting the player’s position to that point.
If I make a discord (or skype to share screen) can someone please join and walk me through what I am doing wrong? Because honestly I followed the video exactly and he got it to work but its not working for me. Maybe I am missing one really small detail?
Got it working! I forgot a very important step. After re watching that video, I saw that he added his spawn point or whatever he called it right under the script in the inspector, I forgot you had to click on the icon and find it in the list that pops up. I totally forgot about that part.
But a new problem, after my guy respawns, he falls through the platform lol. Any idea how to fix that? I think I know why, the spawn point can’t be too low.