I think i am getting there i tried this

Code:
function tile_event() 
{
	if (bmapno ==1 && credits >0) 
	{
	creditsf_add(-2000);
	ent_create(ship_b1, my.x, ship_function);  // create / place ship at my.x?
	}
	if (bmapno ==2 && credits >0)
	{
	creditsf_add(-3000);	
	ent_create(ship_b2, my.x, ship_function);  // create / place ship at my.x?
	}
	if (bmapno ==3 && credits >0)
	{
	creditsf_add(-500);	
	ent_create(ship_b3, my.x, ship_function);  // create / place ship at my.x?
	}
}


it almost works, but when selecting ships with different costs it fails, i gat down to say 2g`s i can still add 3g ships as many times as i want. I am missing something quite simple i am sure frown

Last edited by jigalypuff; 12/21/08 14:44.

Why does everyone like dolphins? Never trust a species which smiles all the time!