What you can do is start with RespawnX and RespawnY. So, when they die, they will respawn wherever those coordinates say - by default the beginning of your level.
On collission with the checkpoint actor, set RespawnX and RespawnY to the new coordinates.
Then, when they die... always respawn at RespawnX, RespawnY.
That's assuming you don't reload the scene. If you reload the scene... it gets alot more complicated.
Comments
You're going to have to be more specific. What kind of checkpoints? What do you want them to do? What kind of game are you building?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
It's a platformer game. I want the checkpoints to be the Mario type? when I walk at them, they save my position
What you can do is start with RespawnX and RespawnY. So, when they die, they will respawn wherever those coordinates say - by default the beginning of your level.
On collission with the checkpoint actor, set RespawnX and RespawnY to the new coordinates.
Then, when they die... always respawn at RespawnX, RespawnY.
That's assuming you don't reload the scene. If you reload the scene... it gets alot more complicated.