EDIT: Ignore this, I’m making the levels quite short so there is no need for checkpoints.
I want a checkpoint system of sorts in my 2.5D (can see the Z axis, can’t move along it) sidescrolling game (my first game, which is why it is so simple). I’m a beginner in coding (I’m okay at JavaScript). I think I have an idea of how this will be achieved: place an empty object where I want the checkpoint, and make it a trigger. When the player passes through, it is activated. From now on, when they die, they are transported to the object. I just have no idea how this will be achieved.
Any help will be appreciated.