
if coingen < coingenlim
{
	inst =instance_create_depth((irandom_range(xlim, xlimh)), irandom_range(0,16000), -3, obj_bloblehop_coin)
		coingen +=1
}




if ygen >= ylim
{
	
	inst =instance_create_depth((irandom_range(xlim, xlimh)), ygen, -2, obj_bloblehop_platform)
	with inst
	{
		
		if irandom_range(1,30) = 4
		{
			inst = instance_create_depth(x,y,-2,obj_bloblehop_platformboost)
				
			instance_destroy()
		}
	}
	ygen -= global.ystep
}

else 
{
	inst= instance_create_depth(540,15500,-10, obj_bloblehop_player)
	view_set_visible(0, obj_bloblehop_player)
	
	instance_destroy()
}

if cloudgen < cloudgenlim
{
	inst =instance_create_depth((irandom_range(xlim, xlimh)), irandom_range(0,16000), -1, obj_bloblehop_cloud)
	with inst
		{
			if (place_meeting(x,y,obj_bloblehop_cloud))
			{
				instance_destroy()
			}
			if (place_meeting(x,y,obj_bloblehop_platform))
			{
				instance_destroy()
			}
			if (place_meeting(x,y,obj_bloblehop_platformboost))
			{
				instance_destroy()
			}
		}
		cloudgen +=1
}




global.ystep += 1