Ok, the first thing is you don't even have the create actor function call anymore. So, you aren't recreating the player at all. Next is when you do recreate the actor, you need to reparent the view to the player (since the player actor it was parented to was destroyed). To do this you can call the ChangeParent function, setting the view's parent to player.
Lastly, you'll need to move the view to wherever you respawn the player. Since you have now parented the view to the player, its coordinates are relative to the player, so all you need to do is set the view's x and y equal to (-300, -350).
- Code: Select all
view.x=-300;
view.y=-250;
And all of that goes into the event you called DestroyActor.