OK, got it working. Here is the code, maybe this will help someone else:

Basic save and load function:

Code:
var BloomChecker = 1;

function saving_game()
{
	//disable pp bloom before saving
	BloomChecker = 1;
	Bloom();

	if (inkey_active == 1) {return;}
	if (players_health <= 0) {return;}
	
	game_save("save", 1, SV_ALL-SV_INFO);
	
	//enable pp bloom after saving
	BloomChecker = 0;
	Bloom();
}

 
function loading_game()
{	
	//disable pp bloom before loading
	BloomChecker = 1;
	Bloom();
	
	//enable pp bloom after loading
	game_load("save", 1);
	BloomChecker = 0;
	Bloom();
	
}




Main function:

Code:
void main()
{

	video_mode = 10;
	video_depth = 32;
	video_screen = 2;
	
...................................................
	
	level_load("level.wmb");

	on_f2 = saving_game;
	on_f3 = loading_game;

..................................................
	
	wait (3);

        //initializing bloom effect 
	while(BloomChecker!=0){
		Bloom();
		BloomChecker = 1;	
		wait(1);
	}
}



Thank you for your help everyone. Enjoy smile


No matter what people tell you,  words and ideas can change the world.