M
Murr_
Guest
Okay this was bugging me for 2 days straight and i have a grasp of it, but can't seem to really fix it. What i want to do is fade in the text(_image_0_alpha += 0.1) and display the text for a set amount of time (Alarm) then it fades out (_image_0_alpha -= 0.1) and displays another string of text fading in after the first one displayed.
This is my code i'm working with right now.
oINTROtalk_speech
When i try to check to see if the first text is less than or equal to zero and try to set the second texts alpha + continuously. But it doesn't seem to work. It just keeps the first string alpha visible. Can someone help me with this? Its a pretty big step forward if i finish this problem quickly.
This is my code i'm working with right now.
oINTROtalk_speech
Code:
///CREATE_EVENT
time_shown = 30;
end_shown = 20;
_image_0_alpha = 0;
_image_1_alpha = 0;
Code:
///BEGIN_GUI_DRAW EVENT
draw_text_ext_colour(192, 176, "'Un-Spoily Samper Text'", 40, 950, c_purple, c_white, c_white, c_purple, _image_0_alpha);
if (alarm[0] == -1) { <--- When room starts, begins alarm, and sets first text +0.1 until 1 or over 1
alarm[0] = time_shown;
_image_0_alpha += 0.1;
}
if (_image_0_alpha >= 1) { <--- Checks if first text is over 1 or 1 and -0.1 continuously until 0 or negative. This doesn't work for some apparent reason.
_image_0_alpha -= 0.1;
}
if (_image_0_alpha <= 0) { <---- This checks if the first text equals to 0 and sets the second text alpha +0.1 until it gets to 1
_image_1_alpha += 0.1;
draw_text_ext_colour(192, 176, "'Another Un-Spoily samper text'", 40, 950, c_purple, c_white, c_white, c_purple, _image_1_alpha);
}