respowning?
Posted: Thu Nov 10, 2011 4:13 pm
how do you get the player to respown after dying?
RESPAWN=0;
if(RESPAWN==1)
{
CreateActor("Player", "PlayerStandRight", "(none)", "(none)", 240, 160, false);\\ Change the "240" and "160" depending on where you want him to spawn
RESPAWN=0;
MoveTo("view", 0.000000, 0.000000, 500.000000, "Game Center", "");
if(RESPAWN==1)
{
CreateActor("Player", "PlayerStandRight", "(none)", "(none)", 240, 160, false);// Change the "240" and "160" depending on where you want him to spawn
RESPAWN=0;
MoveTo("view", 0.000000, 0.000000, 500.000000, "Game Center", "");
}
if(RESPAWN==1)
{
CreateActor("Player", "PlayerStandRight", "(none)", "(none)", 240, 160, true);
RESPAWN=0;
view.x=0;
view.y=0;
}
RESPAWN=1;