A
Aldran85
Guest
Hello together,
i would like to let a instance fade out before it gets destroyed.
This is my code atm:
sprite_index = spr_enemy_death;
image_alpha = 1;
image_alpha = max(image_alpha - 0.01, 0);
instance_destroy();
But the Instance get destroyed instant like its skipping the alpha part?
i would like to let a instance fade out before it gets destroyed.
This is my code atm:
sprite_index = spr_enemy_death;
image_alpha = 1;
image_alpha = max(image_alpha - 0.01, 0);
instance_destroy();
But the Instance get destroyed instant like its skipping the alpha part?