Crysillion
Member
Creating a Platformer project.
As it stands right now, whenever the player object "dies", they are destroyed and respawn where the player object is within the room -- which is the very beginning of the room.
I'm trying to make it so when the player dies, they instead respawn on a nearby platform. I'm honestly not entirely sure how to best approach this and am looking for advice or some code examples on how to go about accomplishing this task.
The player cannot simply respawn where they died because falling to their death into the void is possible, so respawning there would just result in a death loop.
As it stands right now, whenever the player object "dies", they are destroyed and respawn where the player object is within the room -- which is the very beginning of the room.
I'm trying to make it so when the player dies, they instead respawn on a nearby platform. I'm honestly not entirely sure how to best approach this and am looking for advice or some code examples on how to go about accomplishing this task.
The player cannot simply respawn where they died because falling to their death into the void is possible, so respawning there would just result in a death loop.