So I am trying to make a "bloodstain" mechanic for my game, akin to the one in Dark Souls, where when you die, your held souls get dropped on the ground at the location where you died at and you can go reclaim them again if you get there without dying and interact with said bloodstain.
I am achieving this by having an event in every map where the player can die, and the event gets teleported to the player's location upon death. This works fine, the event gets teleported, I can reclaim the souls and the event disappears afterwards, and it will appear again if the player dies after claiming them.
The problem is that upon a second death, while the event is still active, the event doesn't get teleported to the new coordinates of the player, and just stays at the first coordinates the player has died at no matter how many times they die.
Here are the related events and common events this whole mechanic works with:
Common events:
The areas that are crossed out in red are unrelated to the logic, and are only animations or other mechanics that already work.
Please take into consideration that I am using Yanfly's Save Event Location plugin to save the location of the event upon changing the map. I don't know if that causes any problems.
I'd really appreciate if anybody can help me figure out the problem here. I would alos like to use this thread for any further problems I encounter with this event.
I am achieving this by having an event in every map where the player can die, and the event gets teleported to the player's location upon death. This works fine, the event gets teleported, I can reclaim the souls and the event disappears afterwards, and it will appear again if the player dies after claiming them.
The problem is that upon a second death, while the event is still active, the event doesn't get teleported to the new coordinates of the player, and just stays at the first coordinates the player has died at no matter how many times they die.
Here are the related events and common events this whole mechanic works with:
Common events:
The areas that are crossed out in red are unrelated to the logic, and are only animations or other mechanics that already work.
Please take into consideration that I am using Yanfly's Save Event Location plugin to save the location of the event upon changing the map. I don't know if that causes any problems.
I'd really appreciate if anybody can help me figure out the problem here. I would alos like to use this thread for any further problems I encounter with this event.