Getting very frustrated...
I HAVE
* a variable called "Alive" (tried both global and actor)
* Create Actor (and tried Draw Actor) for player:
Alive=1; (tried Alive==1; just in case)
* Destroy Actor script for player:
Alive=0; (tried Alive==0; just in case)
* A smooth moving (not drawn)actor (named: ViewTarget) that follows the player(which the view is parented to)
* A draw actor script (for ViewTarget actor) with the following:
int weight = 10;
if(Alive==1)
{
x = ((weight -1)*x + player.x)/weight;
y = ((weight -1)*y + player.y -25)/weight;
}
else if(Alive==0) //also tried a plain if too
{
x = ((weight -1)*x + player_die_l.x||player_die_r.x)/weight;
y = ((weight -1)*y + player_die_l.y||player_die_r.y -25)/weight;
}
(The player_die_r/player_die_l is a dying player animation(actor)created in the destroy actor event of the player...)
NOTHING HAPPENS WHEN THE PLAYER DIES! The view follows the "ViewTarget" actor which follows the now destroyed (invisible)player back to x0y0 location on the map in a quick swooshing motion, instead of staying with the dead player actor.