Drawing variables and text at the same line.
From YoYoGames Wiki
== How to draw variables and text in same line using draw_text() function. ==
If you don't know how to draw variables in the same line and you do this instead or something similar.
draw_text(x+0,y+0,'Gold') draw_text(x+62,y+0,global.gold)
First off all that takes longer time, you have to figure out how wide every character is in the text. And position the varible right. To make it simplier and nicer, just change it to this.
draw_text(x+0,y+0,'Gold: '+string(global.gold)) /* Note the +string.*/
This will draw the text like this.
Gold: 300 // Asuming the variable is 300
You can make it even longer for example.
draw_text(x+0,y+0,'Inhabitants: '+string(global.inhabitants)+' / '+string(global.maxinhabitants)) this woud draw something similar to this.
Inhabitants 5 / 25 // If inhabitants are 5 and max inhatibants is // 25
- This Tip was brought to you by the member. Thakiller26 A helpful user.

