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

gui event

  1. Q

    Move a GUI sprite with the mouse

    I made a debug tool for myself that I'd like to be able to move around with the mouse so I don't have to exit out of the game, change the X and Y run again and hope it's where I want it. I'm using any unused keyboard key to press down and hold to move the sprite( which is in the drawGUI event)...
  2. PJProgramming

    [SOLVED] camera_get_view_x and camera_get_view_y acting strange

    So I've created a nameplate that gets drawn in the gui whenever the player opens a chest using camera_get_view_x and camera_get_view_y. But for some reason the farther to the right or lower down the camera is in game, the father to the right and lower the nameplate will be drawn in the gui. I've...
  3. J

    Issue with GUI flashing or disappearing

    I'm running into an issue of the GUI that I'm drawing flashing or in certain situations, it will completely disappear. In my player object, I'm drawing normal stuff like health bars using draw_sprite_ext and some debugging text to monitor some variables with draw_text. The other thing I'm...
  4. D

    draw_rectangle function behaving incorrectly on scaled GUI layer

    Hi all, I'm having an issue drawing a rectangle with the Draw GUI event in GMS2. The game has a room size of 320x180, and I'm running a 1920x1080 window. Everything seems to work as expected except for the draw_rectangle function, which seems to add 1 game-scale pixel to the coordinates I give...
  5. J

    Multiple controller pointers

    Hi All, I've been struggling with this problem for quite a while now and haven't seen anything on it so either its painfully obvious or it may require someone a little bit smarter to help! Essentially i'm making a multiplayer game that is predominately controller based. Each player has a...
  6. E

    Draw object on GUI layer

    I know the GUI layer is drawn on top of everything else and is not affected by the camera. I'm able to draw an object on the GUI layer using draw_self. However, the object does not appear where I expect it to. Is there a way I can change the coordinates of an object on the GUI layer? If so...
  7. I

    [Solved] Draw Gui event isn't running at all.

    I am busy working on a GUI for my game and everything has been going great but all of a sudden one of the draw gui events for my one object has just stopped running. All that is in the event is: draw_sprite(spr_ScrollBar, 0, 0, 0); Previously it worked fine but for some reason it has just...
  8. M

    GML Best way to program an inventory? Room vs. Draw GUI?

    https://puu.sh/xVvUZ/3f7ad34902.png I'm working on programming in an inventory system, akin to the Minecraft. I've done a bunch of digging around and trying to figure out how best to work an inventory system, and so far, I've found I can do this one of two ways: Program it all from Draw GUI...
  9. A

    GML [SOLVED]Problem drawing sprites in the gui layer.

    I drew a gui button which is drawn just fine. But when i try to draw another sprite in the gui it draws it in a strange way. I added the spr_gui_gold later and thats the sprite thats bugging out. Heres the code: draw_sprite(spr_gui_gold1,0,1700,0); // This is the sprite thats not being drawn...
  10. F

    Legacy GM a quick question regarding fullscreen

    Okay, so basically i was wondering if its worth attempting to optimize a game so that it the window can be fullscreened for a better game experience. So far my game isnt that bad if i fullscreen it. theres only a few problems that need to be solved. 1. I think the gui event causes some...
Top