Thx for the help, i will post my code, maybe it will be helpful for someone
Code:
action level { //impostare i flag
	my.transparent = ON;
	my.alpha = 0;
	my.ambient = 35;
	gameover_pan.alpha = 0;
	sleep(5);
	while(lvl > 0){
		my.x = player.x;
		my.z = player.z;
		my.y = player.y;
		if(lvl == 1)
		{		if(my.alpha > 0){
					my.alpha -= my.flag2*2*time_step;
				}
				if(my.alpha < 100){
					my.alpha += my.flag1*2*time_step;
				}
			my.pan += 10*my.flag1;
		}
		if(lvl == 2)
		{	if(my.alpha > 0){
				my.alpha -= my.flag1*2*time_step;
			}
			if(my.alpha < 100){
				my.alpha += my.flag2*2*time_step;
			}
			my.roll += 3*my.flag2;
		}
	wait(0.1);
	}
	while(my.alpha > 0){
		my.alpha-= 10*time_step;
		wait(1);
	}
	gameover_pan.visible = on; //parte del gameover
	while(gameover_pan.alpha <= 100){
		gameover_pan.alpha += 10 * time_step;
		wait(1);
		}

}



~Vision Divine~