I want to create an object, that when the principal character pass though them, this save the position and if you die, appear again from here
Well, that's all, thanks!!
Posted 23 February 2009 - 07:19 AM
Posted 23 February 2009 - 08:32 AM
When your player collides with the checkpoint-object you can simply either store its coordinates :I want to create an object, that when the principal character pass though them, this save the position and if you die, appear again from here
//player collision with checkpoint-object Checkpoint_x=other.x Checkpoint_y=other.yNow when you "die" you can either just jump back to those coordinates, or create a new player-instance at those coordinates and destroy the current one (to reset all the players variables).
Edited by ragarnak, 23 February 2009 - 08:32 AM.
0 members, 0 guests, 0 anonymous users