I am making a platform game, and I have different respawn points my code is this:
xval = new Array(96, 923, 120, 1155, 600);
_root.player._x=xval[random(xval.length)]
if(xval==96){
yval=330
}
if(xval==923){
yval=11
}
if(xval==120){
yval=15
}
if(xval==1155){
yval=637
}
if(xval==600){
yval=635
}
_root.player._y=yval
_root.player.play()
_root.player.playing=true
and this all works, he dies, respawns, and you can move again. The noly problem is, since I am using a vcam, it seems to mess up all the x and y points, because the vcam is effectively the center of the stage. So it spawns in that position relative to where you died. So what do I do?