gui

  1. I

    Solved - Drawing Rectangle over time in GUI

    Hi, I have some semi-working code in my project that runs a script when the player clicks on certain tiles in-game. I'm struggling with slowing things down to get a smooth look! What I want to happen is: The player clicks the tile. A small blue bar appears in the tile below and fills from...
  2. P

    What is wrong with my code (GUI is drawn improperly after adding different screens support)

    Hello everybody. Actually I am having troubles implementing aspect ratio managment stuff as always. I used Pixelated Pope's tutorial for old version of GMS, but I have spoilt somthing trying to implement it in my game (GMS 2). So, at first I was using GMS default stuff: Set the viewport and...
  3. William Garrison

    GMS 2 Text Box Height

    How would I go about capturing the height of text that is being written to the GUI? Not really sure what code to paste here. Right now I am drawing a box with 9 slice, the printing the text on top of it a character at a time (like most games). Below is what it current looks like. The height is...
  4. Christop777

    GMS 2 Replace black borders by a GUI background

    Hello, I need your help because I don't know what to do now: I've just finished my first game for Android and iOS smartphones. The resolution of my game is fixed : 720x1280 (portrait mode). "Keep Aspect Ratio" option is on in GameMaker Studio 2. The game display is fine when running on iPhones...
  5. TomOmNom

    How to make a GUI Switch?

    I was wondering how I would make a switch in the GUI that can be called in an if statement to get its on-off position. I couldn't figure out how to store the on-off position properly.
  6. KyleRansford

    GMS 2 Issues with Sound Gain not Displaying in GUI

    I've added a volume adjustment to a game, and all is working. The BGM and SFX gain is lowered. But, with the BGM sounds I have in the default group "audiogroup_default" and I set the gain by choosing a percent using "audio_group_set_gain(audiogroup_default, 0.50, 0);" and so on. and I get the...
  7. D

    DrawGUI in relation to object coordinates with rotating camera

    Basically I want to draw a line from a GUI element to an objects position in the room. I adapted the following from an old forum topic [solved-translate-gui-to-game-view-coordinates.27101]. The object in the room updates its GUI translated coordinates each step: //get camera position...
  8. P

    GML Help With GUI_set_size Please

    global.VIEW_W = 960; global.VIEW_H = 540; global.VIEW_RES=global.VIEW_W/global.VIEW_H var camera_W=global.VIEW_W; var camera_H=global.VIEW_H; var screen_w=display_get_width(); var screen_h=display_get_height(); var screen_res=screen_w/screen_h; if(screen_res>global.VIEW_RES)//Screen is Wider...
  9. N

    SOLVED Surface with shaders displaying blank window

    Greetings developers! Recently I was playing with surfaces and shaders and I've managed to create (by following some tutorials) a simple lighting system with some shaders. It worked perfectly on my demo project but when I tried to apply it to my main project it didnt work at all... I don't...
  10. Mortalo

    HTML5 Bug with surface_reset_target in Draw GUI?

    So, I'm converting my game from windows to html5. I knew that there would be some changes needed, but I was not expecting that I will have to forget about any surface use in the GUI layer. TL;DR: In Draw GUI events, surface_reset_target makes drawing on the GUI layer to not work properly. Let...
  11. A

    SOLVED Farming RPG Tutorial - Cannot find "Import Strip Image"

    Hi, As a new french GameMaker user (so excuse my mistakes), I'm trying the software with the free trial and will most likely buy the creator licence. In the Farming RPG Tutorial, I have to "Import Strip Image" but i can't find it in the current IDE (2.2.5.481). I searched on the forum but I...
  12. Adry

    SOLVED how to get a shader to affect all, but one?

    Hi! Its been a while since I've been on here. so, hello hello! I've currently run into a problem that I'm desperate to solve.. I currently have a shader that de-saturates the screen via gui. The problem is I want one object to remain with color. how can I draw that object without it being...
  13. A

    GMS 2 Cannot get GUI scaling right...

    I'm pulling my hair out with this. I cannot for the life of me figure out why my GUI is scaling incorrectly and creating sub pixels. Here's some examples: https://imgur.com/a/DU4uE6G If I set my GUI to full device size it renders them fine but any sort of aspect ratio scaling I try to do...
  14. F

    Question - IDE 5 essential IDE/GUI improvements

    Hi there, Been using GMS since 2014 and have some suggestions on GMS2s environment that'll help improve workflow. Hopefully these are already on the cards :) -Sub tabs When you full screen multiple objects event codes or scripts it puts it into one 'Code' tab, where you cannot tell which...
  15. L

    GUI layer sprite button help

    So I'm creating an isometric city builder type game and am fairly new to GML and programming so am trying to start small. To start with I've created a simple map and an objects that draws a tower sprite button to the GUI layer. When in game the player can move the camera around the map using...
  16. Azenris

    GMS 2 gui mouse position ;_;

    Having gui mouse position problems :( Not sure what's wrong :( Any help please :( I attached 2 screenshots in this link https://imgur.com/a/OFXwfVH It basically just shows some variables window size = 1920, 1080 game/res size = 960, 540 gui size = 960, 540 view size = 960, 540 viewport = 0...
  17. FeetUpGaming

    In game GUI Help

    Hey, i'm just wondering the best way to do a button GUI in a game that uses a dynamic camera. I usually resort to putting all the button positions and mouse events in the step event then drawing them in the GUI event but i just feel theres alot of manual stuff involved and it's not very future...
  18. V

    GMS 2 [SOLVED] Problems with GUI - inventory

    I'm trying to make an inventory for my game by using GUI. Does anybody know how I can get a link from draw event as it may be with objects ( var a = instance_create(..) )? I want to change x and y coordinates of my picture without putting parameters into draw(...,x,y) just like that ...
  19. Kezarus

    Asset - Project Free Asset - Monastery Framework

    Monastery Framework OBJECTIVE Create a framework project on GM2 that have some useful functions, GUI elements (buttons, panels, containers), basic Options menu, start Ini files that houses preferences, the basic setup for music, sound and particles. DESCRIPTION Ok, I will have to do something...
  20. rellmaker

    Question - IDE GMS 2 unresponsive when Macbook pro wakes up

    First I must mention, I have only recently started using GMS 2 after a hiatus of about 1 year. If I allow my Macbook to enter sleep mode, or close the laptop and open it later, the GMS2 GUI is unresponsive. This only seems to happen if a considerable amount of time elapses between closing the...
Top