D
Drago Supremo
Guest
Hi everybody,
i'm trying to make a simple dialog box which draws the text over time until it reaches the '#' character, then it should delete the part of the string string already written, but for some reason even if the string_delete() function is executed the "text" remains the same.
Here is the code i'm using with both "pos" and "time" initialized to 0.
i'm trying to make a simple dialog box which draws the text over time until it reaches the '#' character, then it should delete the part of the string string already written, but for some reason even if the string_delete() function is executed the "text" remains the same.
Here is the code i'm using with both "pos" and "time" initialized to 0.
Code:
draw_self();
draw_set_color(c_black);
draw_set_font(fn_dialoguePrimary);
draw_set_halign(fa_left);
draw_set_valign(fa_top);
str = string_copy(text, pos, time);
if (string_char_at(str, time) == '#')
{
text = string_delete(text, 0, time);
}
draw_text_ext(x - 380, y - 10, str, -1, 745);
Can someone understand what am i doing wrong?
time++;