T
Tenten2016
Guest
So I'm trying to make my draw text appear over time such as five seconds. The code that I used:
Create:
draw = false;
alarm[0] = 5;
textAlpha = 1;
fadeSpeed = 0.01;
Alarm 0:
Code:
draw = true;
Step:
Code:
if (!draw && text_alpha > 0) {
text_alpha -= fadeSpeed;
}
Draw:
Code:
if (textAlpha > 0)
{
draw_set_color(c_white);
draw_set_font(font0);
draw_text(32,480, "Hey world!");
}
But I'm not getting it to work; I'll try it once again just to make sure. Any suggestions just in case?
Create:
draw = false;
alarm[0] = 5;
textAlpha = 1;
fadeSpeed = 0.01;
Alarm 0:
Code:
draw = true;
Step:
Code:
if (!draw && text_alpha > 0) {
text_alpha -= fadeSpeed;
}
Draw:
Code:
if (textAlpha > 0)
{
draw_set_color(c_white);
draw_set_font(font0);
draw_text(32,480, "Hey world!");
}
But I'm not getting it to work; I'll try it once again just to make sure. Any suggestions just in case?