B
BBTP
Guest
Currently I have drawn text one scree via this code:
{
draw_text(45,y, "Level: "+string(global.level));
draw_text(45,y+16 ,"HP: "+string(global.hp)+"/"+string(global.maxhp));
draw_text(45,y+32 ,"EXP: "+string(global.expr)+"/"+string(global.maxexpr));
if global.hp > global.maxhp {global.hp=global.maxhp}
x= view_xview[0]
y= view_yview[0] + 250;
}
When I go off to the side it no longer appears on the screen, how can I 'lock' it into the viewport so It's always on screen?
{
draw_text(45,y, "Level: "+string(global.level));
draw_text(45,y+16 ,"HP: "+string(global.hp)+"/"+string(global.maxhp));
draw_text(45,y+32 ,"EXP: "+string(global.expr)+"/"+string(global.maxexpr));
if global.hp > global.maxhp {global.hp=global.maxhp}
x= view_xview[0]
y= view_yview[0] + 250;
}
When I go off to the side it no longer appears on the screen, how can I 'lock' it into the viewport so It's always on screen?