draw gui

  1. T

    Legacy GM Stamina Bar

    Hey, It's me again. Basically what I am trying to do is draw a stamina bar that stays the same even if I unlock more stamina. I've already decided the most stamina I am going to allow is 100, but the player starts off with 10, and I'm planning on adding to the max depending on the players level...
  2. Pfap

    virtual key event

    [SOLVED] Which event should virtual keys be placed in? The manual states that they should be defined in the darw gui event, but when I do that I get this error: "Illegal virtual key handle at gml_Object_virtual_left_DrawGUI_1 (line 3) - virtual_key_show(f)" When I use the create event there...
  3. B

    Help with Radar/Minimap and drawing it to the screen.

    Hi, My current project is a top down shooter. I have an NPC object which I would like to have displayed on a Radar/Minimap. I would like the NPC object to be represented as a red square on said Radar/Minimap. I have tried many different solutions that i have come across online. All of them do...
  4. C

    [SOLVED] Translate GUI to Game View Coordinates

    Hello, I'm having trouble drawing a screen over the player object in my game. The end result would be a screen for each individual character, similar to the image below. The problem is that I would like to draw to the GUI layer, not the game view. Because of that, it's hard for me to figure...
  5. T

    Blood gui.

    I wanna make it so that Draw GUI Creates a bloody background and it increases in alpha. Can someone help me with that? :)
  6. D

    (SOLVED) GUI Button Interaction Issue

    Hello all. I am working on a personal project and I am trying to figure out how to get these GUI buttons to work how I want them to. The small yellow button is going to be one of 4 buttons I will have available for clicking, and I wanted to add the effect of the button changing when the...
  7. C

    Legacy GM [SOLVED] Stop snapping to mouse x and y?

    Hi I'm trying to make it so when i click on sprite it draws the sprite to mouse x and y but based on where you have clicked on the sprite. I'm using draw gui event to draw the sprites, i think this is the main reason why i can't get it to work. Basically what happens is when i do a check and see...
  8. Cpaz

    Windows window and mouse with draw gui

    var mx=window_mouse_get_x()/2; var my=window_mouse_get_y()/2; if (controller.title=false&&controller.start=false)||controller.ded draw_sprite(spr_mencur,0,mx,my); For some reason, the snippet above yield some odd results. At the default resolution, there little issue. But change it to...
  9. A

    GML Drawing HUD - What is the best practice?

    hi all. generally speaking, what is the best way to draw the HUD (thing like HP/MP, character icon, ammo icon, weapon equipped icon, etc)? ive never coded one before but im just about ready toand was wonder from which angle i should approach this because i can think of multiple ways to start...
  10. A

    GML Want text drawn when button pressed and destroyed when pressed again (GUI)

    Ok so what I want is walk up to an object (collision) press vk_up to draw text (and keep it there) and the text destroyed when vk_up is pressed again. At the moment the text only appears if the vk_up is held down and disappears again when I release it. I've been searching web for while now but...
  11. D

    GML Draw GUI messing up with other Draw GUI

    Hello. I'm sorry for the bad title but I had no idea how to resume. I've 2 objects. Object A and B. Object A: - Has a Draw gui event with "Set font to Vector " and "Set the color" on actions, with a short script draw_text(x+240,220,string(time))} Object B: - Has a Draw gui event with "Set...
  12. F

    Legacy GM Request help with Draw GUI Event.

    I recently tried learning how to change resolutions. At a press of a button the game goes from windowed to full screen. However I am experiencing problems with the Draw GUI Events. I need help with correcting the placement and sizing of the sprites and text drawn with the Draw GUI Events. I...
  13. D

    Android Text in the wrong place

    Hello guys! I'm working on a project that will be launched on Windows and Android. I've found a tremendous problem, huge problem. Everything is going fine at windows: However, the same code for Android shows like this I would like to know why and how to solve it. I'm going to copy paste...
  14. T

    Android - Text goes very small if drawn in Draw GUI [SOLVED]

    Hey folks, Noticed something a bit strange and I wonder if anyone could offer up an explanation; I had some draw_text() calls in a few Draw GUI events. When doing a Windows build everything displayed fine, but when I ran it on Android the text would come out really really small. This seems to...
  15. E

    Legacy GM Draw GUI and Text

    I am making a very pixelated game with room/view sizes being around 200 x 81 and the port size being 1632x918. I figured the best way to do text would be using GUI. So far it looks but I am having trouble placing the text in the room. No matter what value I put in for display_set_gui_size it...
  16. G

    Draw Coordinates precision issue with GUI in HTML5 both Canvas(far more) and Webgl

    I have big Issues drawing with proper precision my gui using drawing functions in HTML5. My Gui is set up with display_set_gui_maximise(ScaleFactor,ScaleFactor,posx,posy); posx and posy are integer values, to cope with custom aspect ratios and letterboxing, while scalefactor is just it a scaling...
  17. Tthecreator

    Question - Code Draw gui event being disabled?

    I was porting over my windows 3.1 remake (https://forum.yoyogames.com/index.php?threads/uiz-windows-3-1-made-in-uiz-in-game-maker.12624/) over to game maker studio 2, and noticed some weird behavior. Whenever open a new window, It isn't being drawn. It's there and it's step event is being...
  18. JackTurbo

    Legacy GM [solved] - (possibly dumb) drawing to the GUI Layer question

    Hi All, New to the forum and I'm pretty new to GMS too (having only gotten it in the humble bundle). I am already making good progress and am working pretty much 100% in GML. I think I'm getting a good handle on most things (in large due to the wealth of resources available), however despite...
  19. D

    Legacy GM [CLOSED] Thin Gap Between Two Triangles Forming a Trapezoid

    Graphical issue that isn't really a programming issue, but it doesn't really fit with the technical support questions either... so I thought it would be best to just put it here. GameMaker does not have a built in function to draw a trapezoid, so what I did was I drew two triangles like this...
  20. J

    [SOLVED]Having issues with draw event working different on mobile?(android)

    So i'm currently trying to make a mobile game for android and in this mobile game i have a virtual analog stick, which i got from another forum. The thing is that the analog stick works brilliant on windows, but when i try it on mobile, the location and size of the analog sticks just freaks...
Top