button

  1. JJampion

    GML on/off button

    hi has anyone an idea how it works that a button switch from on to off like when the button is clicked : new sprite + deactivated music and if its clicked again : old sprite + music is activated again
  2. duran can

    button builder v1

    Hello everyone, I made a simple button builder. You can create and use your buttons over HTML5. Click to create a button.
  3. S

    SOLVED Hello. I am getting two errors for my code concerning my options button working.

    I have been using Game Maker and GML for a week now. I have been following this YouTube tutorial on how to get the options button to work and show the options list screen. However, I'm getting these two errors here : ERROR in action number 1 of Step Event0 for object obj_options_button...
  4. ShadowLenz

    Windows attach an object to the screen (Button Menu)

    hi! i'm using game maker 1.4 i'm making an RPG and i design a button menu, i want to put it to a screen corner. it's not a simple frame, has an animation and other one when the mouse is over him. I know you can use the views of the rooms but I'm not very good at working with that. (the character...
  5. XenonMax

    GML Save page and color in 1 variable

    Hello, I want to program something like a Launchpad light show painter(this thing with buttons/music/light). Now I try to save the current buttoncolor in a variable on the right page! Like --> ( If I have page 2 change color(or image_index) to red(or 2) ) (I can't create 100000 variables for...
  6. Y

    Buttons in GMS

    Hi. I have different buttons as text e.g. "> START" or "> OPTIONS" as a sprite. which is the best way if you press the button that the text gets a kind of click animation to make it optically better Thank you
  7. samspade

    Buttons, Design, and GameMaker Studio 2.3

    GM Version: GMS 2.2.5 (2.3 Coming) Target Platform: All Download: Github 2.2.5 (2.3 Coming) Links: YouTube Playlist Summary: A GML tutorial series focused on building some buttons and intractable objects and using the same to talk about design and GameMaker Studio 2.3. A link to the playlist is...
  8. A.Chateauform

    GMS 2 How to code a click to open a textbox ?

    Hello everyone, I'm trying to make a point and click game with tutorials appearing when you click on different object, But i'm really bad at coding and i can't find what i really want on the tutorials Maybe someone can help me, i just need the code for the basic following process : - Click...
  9. D

    Custom keyboard binding

    In settings i want to make all my in-game buttons, so the player can choose the button he needs and set it to new button. How to make a check what button the player pressed? And how to set this button to all other systems? Sorry for bad english, thanks
  10. S

    Android Touch Controls

    Hi , How i can add Touch Controls for this project And i want add as object buttons and add shoot button [ touch ]
  11. F

    GML Draw text inside object

    So i tried to make button with different function, i have a way to make it one by one, but im looking for another way, it just same sprite but different text and function actually work like : if button_a = true go to next room else if button_b = false decrease point else if....c, *button as...
  12. I

    GMS 2 How to make a settings menu?

    So what I am trying to achieve is a settings menu in which the player can see which button does what, and also if he double clicks on it, he would be able to change the button to whatever he desires. This is what I've tried, but didn't seem to work. if (image_index = 0 and...
  13. S

    How to link multiple buttons to multiple doors?

    Hi folks, I am just starting with Game Maker and run into a problem I could not figure out. I want to place multiple buttons and doors in a room. Each button should be linked to a specific door. I tried a lot of things, but nothing worked. Would be great if someone could help me out here...
  14. Krenzathal77

    Pause button press carry over un-pauses game

    Hey folks. Quite a common issue I'd wager, and I did a quick search but I'm not sure I understood the solutions in context to my issue. My problem is that I have a pretty simple but effective pause script which works perfectly, but not with the same button. I currently have it set up so that...
  15. Dr_Nomz

    GML How do I make a button with draw_rectangle and room_view?

    So I have this button: if (abs(mouse_x - x) < 50) && (abs(mouse_y - y) < 50) && showInv == true{ draw_set_color(c_white); draw_rectangle(x-47,y-47,x+46,y+46,0)That basically allows it to draw a rectangle whenever it's hovered over, and then it allows you to click on it, which executes some...
  16. Dr_Nomz

    GML [SOLVED] Making a button highlight with room view.

    So I want to make a button appear according to the room view (so it fits nicely) and have a little highlight over it when I mouse over. Problem is, I've tried just about every combination I can think of, and so far nothing's worked. Room view code (works fine): var x1,x2,y1,y2; x1 =...
  17. Dr_Nomz

    GML Using the same button to switch between things?

    Okay, say you have a variable, and it has values of 0 and 1, and you want to switch between them at a moments notice. So you could bind two different keys to get the different results, but what about just one key? Like if it were bound to Q and you hit Q, it would switch between them.
  18. Dr_Nomz

    GML Buttons? (Tutorials, etc)

    I tried making some custom buttons, but they didn't seem to work. Maybe someone here knows a tutorial or something that can point me in the right direction? Basically I just want it to where it'll pop up on the player's screen and follow them like a UI would, using code like this: var...
  19. Dr_Nomz

    GML How do I make this button work?

    So I have a working button from an inventory tutorial I saw, but when I tried to make a custom one it didn't work. ///Draw event\\\ var click = mouse_check_button_pressed(mb_left); var x1,x2,y1,y2; x1 = view_xview[0]; x2 = x1 + view_wview[0]; y1 = view_yview[0]; y2 = y1 + 104...
  20. Mythi.T

    GML Different Sized Windows

    Is there a way to make a game that allows the use of the "full screen" button (found between the "X" button and the "minimize" button) So far when I make games that button is unclickable I want to make a game that allows for a fixed-non full screen option and a full screen option. Is there any...
Top