S
SlFinn
Guest
Hi. Basically i have coded a ui for the player's score and lives. Yet i am having 2 problems with the outcome when i press play.
The first problem is that the string SCORE and the string LIVES are on top of each other (i am assuming the same x and y coordinates) and are not how they should be, which is one word underneath the other.
The second problem is i am unsure how to make sure that the SCORE and LIVES stays in the top left hand corner of the screen (in the viewport i would like it to always show them in the top left hand corner after i press play).
This is the code i have used so far. I'd appreciate it if you could tell me what i need to add to it to fix these two problems. Ok, here's the code:
The create Event for my ui:
The Draw Event for my ui:
Please help me i would appreciate it so much! Thank you for taking the time to read this.
The first problem is that the string SCORE and the string LIVES are on top of each other (i am assuming the same x and y coordinates) and are not how they should be, which is one word underneath the other.
The second problem is i am unsure how to make sure that the SCORE and LIVES stays in the top left hand corner of the screen (in the viewport i would like it to always show them in the top left hand corner after i press play).
This is the code i have used so far. I'd appreciate it if you could tell me what i need to add to it to fix these two problems. Ok, here's the code:
The create Event for my ui:
GML:
score = 0;
lives = 3;
Code:
draw_text(20, 20, "SCORE: " + string(score));
draw_text(20, 20, "LIVES: " + string(lives));
draw_set_font(space_font);