• 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!

a problem in every game ive made

F

fxokz

Guest
whenever i use the following:
Code:
draw_set_valign();
draw_set_halign();
draw_set_font();
draw_set_alpha();
draw_set_colour();
it always ruins the colour/font/text alignment elsewhere. When i type in this code i want it to only affect the object i write it to. Is there a way to avoid confusion?
 
R

renex

Guest
Yeah.

1. Put them before every text drawing.
2. Always reset them to a default after straying from it.
3. Store the current values with the _get functions and then put them back after using.
 

rIKmAN

Member
whenever i use the following:
Code:
draw_set_valign();
draw_set_halign();
draw_set_font();
draw_set_alpha();
draw_set_colour();
it always ruins the colour/font/text alignment elsewhere. When i type in this code i want it to only affect the object i write it to. Is there a way to avoid confusion?
Just reset them back to what they were when you have finished drawing them.
 
Top