Xstart

Explanation
The xstart variable is a local variable that contains the starting x|x position of an object in the room.

Examples
//this code would be placed in the step event or collision with enemy //event because that would be when it needs to check if you health is //out if ( < 1) {  = ;   = ;   = 100; } Note that this is not a read only variable, it can be changed: //for a checkpoint xstart = checkpoint.; ystart = checkpoint.; = xstart; = ystart;