Problem with respawning my character in topdown template

I’m having a problem with respawning my player after I died. I’m setting the actor’s location to the starting location that i get from beginplay.

The problem I have is that on respawn the camera is no longer in topdown and I can’t see my character. Although before I did some changes to my code, I could see my character fall through the floor. So the set location is working, but the camera and movement controls are broken and I don’t know why, it’s supposed to work like this.

Any ideas what I am doing wrong? my movement and camera controls are not supposed to break by doing a simple set location

107706-beginplay.png

Hi Stellarbe,

I’m assuming that you are handling the destroy/respawn in the TopDownController? After you respawn the player, make sure to use a Possess node to ‘re-possess’ the player again.

Let me know if that helps.

I just solved it by moving the set StartingLocation into the TopDownCharacter blueprint instead of my characterBase blueprint. For some reason the starting location didn’t get set when it was in my characterBase class

Thanks for your reply though