P
Pixelguin
Guest
Edit: Decidedly a bug.
I've been trying to draw text in the center of the screen. To test alignment I used this code:
When used in GMS 1.4, this code worked exactly as I expected: black text appeared in the middle center of the screen and colored text to the sides. However, in GMS 2, this same code seems shifted to the bottom-right somewhat.
Have I missed a new standard in text alignment or have I found a genuine bug? I would think that this kind of issue would be well-documented since almost every game uses text which is why I'm hesitant to submit a report right away.
I've been trying to draw text in the center of the screen. To test alignment I used this code:
Code:
///@desc Draw centered(?) text
draw_set_valign(fa_middle);
draw_set_font(fTest); //96pt Tahoma if that matters
draw_set_halign(fa_right);
draw_set_color(c_blue);
draw_text(room_width/2,room_height/2,"Hello");
draw_set_halign(fa_left);
draw_set_color(c_red);
draw_text(room_width/2,room_height/2,"Hello");
draw_set_halign(fa_center);
draw_set_color(c_black);
draw_text(room_width/2,room_height/2,"Hello");
Have I missed a new standard in text alignment or have I found a genuine bug? I would think that this kind of issue would be well-documented since almost every game uses text which is why I'm hesitant to submit a report right away.
Last edited by a moderator: