Saleh, the default death position is the last 'safe' place the player was before he died. For example if Dizzy jumped off the edge of a river into static water that kills, the game resets to the edge of the river. If a moving object kills Dizzy then he will stay where he died unless you add a respawn function. If you want to change where Dizzy respawns then just add a new respawn function each time you want Dizzy to respawn somewhere specific. Make the first one '1', the second '2' etc and use that number in the 'death' property of the object that kills (#27)
HTML Code:
func PlayerRespawn_1()
{
SamplePlay(FX_RESPAWN); // this is the standard respawn code
PlayerSet (P_DEATH, 0);
PlayerSet (P_LIFE, 100);
PlayerSet (P_X, 5048); // reset dizzy to a specific place before death
PlayerSet (P_Y, 1748); // ditto
PlayerEnterIdle();
MusicFade (0,3);
MusicRestore();
}