Ok,

I made a var KlX = 9; in the code start.

I change the function to;

Code:
function painel_startup()
{
	while(KlX==9)
	{
	splash.pos_x = splash.pos_y = 0;
	splash.scale_x = screen_size.x / splash.bmap.width;
	splash.scale_y = screen_size.y / splash.bmap.height;
	wait(1);
	}
}



In this way, just until KlX is = 9 the while will work. When the game start the KlX change to 0, no more needed the scale of intro panel.

This is a good solution ?

Thank you for the help.

BR


A8 PRO 8.47.1