checkpoints

K guys i got a question can anybody tell me how to make a checkpoint in my game so when the player actor dies he will go back to the last checkpoint he touched
thx in advance
thx in advance

player.x = x_checkpoint;
player.y = y_checkpoint;