I have created a level load behavior that works fine to load the second level. Trouble is, I want to create more than one level and that would mean creating a different behavior for each level. I'd like to create a behavior that brings a up a pop-up that I can type in the name of the new level (and thus not code a different behavior for each level).

Here's what I have so far:
Code:
function level_Change() { 
	
	while(1){ 
	
		if(event_type == EVENT_PUSH){
			wait(3);
			level_load("shooter.wmb");  //use this if you are making level 2
			wait_for(level_load);  //use this if you are making level 2
			return;					//use this if you are making level 2
		}	
		
		wait(1);
	}
}
action touch_Entity() { 
	my.emask = ENABLE_PUSH;
	my.group = 2;
	
	while(1){
		wait(1);
		my.event = level_Change; 
	}
}


Any ideas would be really appreciated!