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




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

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

global.ystep += 1