Ah, I see.
If your player character had DEATH animation, you could use this script to record last coords on death:
anim death
@script
if(frame==1){
void self = getlocalvar("self");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "y")...