sure the while (1) loop is for the if statement . i will post the main- function

here it

function main()
{
level_load("TrySprite.wmb"); // load the level
wait (2);
while (1)
{
camera.x = 200;
camera.y = 0;
camera.z =-50;
wait (1);
}
}