• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Problem with showing text in the same position on the camera

P

Pedau666

Guest
I know that this is a silly question but I don't know why, but the text that is generated by this code changes its place when moving to room with other properties, do you know how to resolve this?

o_score draw event
Code:
if room == r_start {} else
{
depth = -999;
draw_set_color(c_white);
draw_set_font(fnt_start);
draw_set_halign(fa_right);


draw_text(camera_get_view_x(view_camera[0]) + (camera_get_view_width(view_camera[0]) * 0.999),
camera_get_view_y(view_camera[0]) + (camera_get_view_height(view_camera[0]) * 0.0001), points);

draw_set_font(fnt_start2);
draw_set_color(c_silver);

draw_text(camera_get_view_x(view_camera[0]) + (camera_get_view_width(view_camera[0]) * 0.999),
camera_get_view_y(view_camera[0]) + (camera_get_view_height(view_camera[0]) * 0.10), coins);

draw_set_color(c_white);
};
 
Top