Hello, I have made huge improvement with my very first game.
However, I have encountered another "impossible problem". I am trying to draw recently gained score points for few seconds in different colour than is the original "Score:" text.
(the "global.kill_y" is static number, because i did not manage to make it in different colour)
I technically managed to do that (that yellow +100 under the Score, which disappears after few seconds), but coud not make it in the same draw_text function as the score is.
I could draw it manually next to it, but it might cause problems later. I can not pass variable with more arguments (like colour).
Do you have any ideas?
Thanks for all comments, I really appreciate it.
P.S.: I have tried looking for help on YouTube and other forums before I decided to make this post.
However, I have encountered another "impossible problem". I am trying to draw recently gained score points for few seconds in different colour than is the original "Score:" text.
(the "global.kill_y" is static number, because i did not manage to make it in different colour)
GML:
draw_set_font(fMenu);
draw_set_colour(c_white);
draw_set_halign(fa_left);
draw_text(16,48,"Score: " + string(global.points)+ global.kill_y);
if (global.kill_points = true)
{
draw_set_color(c_yellow);
draw_text(16,96,"+100");
}
I could draw it manually next to it, but it might cause problems later. I can not pass variable with more arguments (like colour).
Do you have any ideas?
Thanks for all comments, I really appreciate it.
P.S.: I have tried looking for help on YouTube and other forums before I decided to make this post.