Hello,

I am trying to build a game so that the player moves trough a maze and gets "teleported" back to the begining, after reaching the end.

I have built a "restart ()" function, and tryed
// vec_set(player.x, vector(0,608,100);
// player.x=0; player.pan=90;

and similar things, but it just caused a script crash at the end of the maze.

What can I use to reset players position? Do I just level_load the level again?

I also would like to show a screen saying "press any key to return to the begining" bevore I move the player there. I was thinking about doing sth like:

while (!any_key) {set levelpanel=visible; restart()}

but I am not sure how I say "any key". Can someone tell me the right command line?