Having issues with drawing Ammo Counter (Depth Issue)

Vinsane

Member
Hi guys!

I have an issue going on with drawing some font on top of my background object.

The background object has depth set to -
depth = -1

I then have an object that draws the score within the room.
within the create event the object that draws the score has
depth = -100

Under the draw GUI event of the same object it has

if object_exists(obj_player_pistol_lvl1) - The Player
{
draw_set_colour(c_blue) - The colour
draw_text(698,712,"AMMO = " + string(global.pistol_lvl1_ammo)) - the draw string itself
}

The thing is, the object appears fine when rendering on windows VM. As soon as I send the game over to my android everything loads properly except for the ammo counter. I cannot see the font i'm drawing if that makes sense.

Would anyone have any advice?

Thanks,
Vince
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
Check the size of the GUI layer and make sure that it's the size you expect. I suspect that the GUI is smaller or at least a different aspect ratio to what you expect and so the text is being drawn outside the visible screen area... You should check the manual for the function display_set_gui_size. ;)
 

Vinsane

Member
Check the size of the GUI layer and make sure that it's the size you expect. I suspect that the GUI is smaller or at least a different aspect ratio to what you expect and so the text is being drawn outside the visible screen area... You should check the manual for the function display_set_gui_size. ;)
You are fantastic, that seems to have fixed the issue thank you.
 
Top