F
Frolacosta
Guest
I have a 2 object's where I am setting an alarm using the following code in the Create event:
Within alarm 0 I am doing the following:
The idea being, the object will fade out and be destroyed within 10 seconds (minus 0.1 from image_alpha every second).
One of the objects with this code fades out and disappears within 1.5 seconds, whereas the other disappears within 10 seconds as expected.
Can anyone explain why this might be? Or if there are other variables which can affect the timer within alarms, or game_get_speed(gamespeed_fps) between objects?
Code:
alarm[0] = 1;
Code:
if(image_alpha == 0) {
instance_destroy();
}
image_alpha -= 0.1;
alarm[0] = game_get_speed(gamespeed_fps);
One of the objects with this code fades out and disappears within 1.5 seconds, whereas the other disappears within 10 seconds as expected.
Can anyone explain why this might be? Or if there are other variables which can affect the timer within alarms, or game_get_speed(gamespeed_fps) between objects?