S
Schwiftywaffles
Guest
I'm making a text based choose your own adventure game. I have it so that when F1 is hit my game goes fullscreen, which scales my text and makes it blurry. This is the code for my text boxes and my fullscreen.
TEXTBOX
draw event
create event
FULLSCREEN
key press f1 event
window_set_fullscreen(!window_get_fullscreen());
I've tried multiple things and I just can't figure out how to scale it correctly.
TEXTBOX
draw event
Code:
//draw textbox
draw_rectangle(x-2, y-2, x+boxwidth+2, y+boxheight+2, false);
draw_sprite (sprite_storytextbox, 0, x,y);
//draw text
draw_set_font(font_text)
draw_text_ext(x,y, text, stringHeight, boxwidth - (2*xBuffer));
Code:
text = "Where you type in what the textbox says "
xBuffer = 10;
yBuffer = 10;
boxwidth = sprite_get_width (sprite_storytextbox)
stringHeight = string_height(text);
boxheight = sprite_get_height(sprite_storytextbox)
key press f1 event
window_set_fullscreen(!window_get_fullscreen());
I've tried multiple things and I just can't figure out how to scale it correctly.