if x < 0
{
	image_alpha -= 0.2;
	speed += 0.5;
	direction -= 2 * (direction - 180) + 180;
}
if x > 1920
{
	image_alpha -= 0.2;
	speed += 0.5;
	direction -= 2 * (direction) + 180;
}
if y < 0
{
	image_alpha -= 0.2;
	speed += 0.5;
	direction -= 2 * (direction - 90) + 180;
}
if y > 1080
{
	image_alpha -= 0.2;
	speed += 0.5;
	direction -= 2 * (direction - 270) + 180;
}

//x = clamp(x, 0, 1920);
//y = clamp(y, 0, 1080);

direction += random_range(-3, 3);

if !image_alpha
	instance_destroy();
	
if image_index > 47
{
	activate = false;
	image_speed = 1;
}