mouse click

  1. 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...
  2. giraffeman210

    Drag And Drop click on an object

    I see that you can set the mouse to do something when clicked but how do I make it so I can click on specific objects? GMS2 and dnd. Thanks!
  3. F

    GML How to trigger alarm when mouse click the object?

    im just trying to do what i think like making alarm first then use left pressed to trigger it but that cant, or i think this was some bug, cause i can run it but doesnt pop up the game display. i try using Create > alarm[0]=10; room="theroom" Left Pressed> if (alarm[0] <=10) {...
  4. T

    HTML5 How to scale canvas preserving the clickable area

    On our website, we upload games made by our students. Because scaling up usually looks better we have a view port of 640x480 for all the student games and scale the canvas up to fit its container, so that the game looks good on most desktop environments. However, since we started implementing...
  5. G

    GML Help with mouse buttons code

    Help with mouse buttons code. I'm making a starting scree for my game and I want the player to be able to select with his left mouse button and can go to different rooms (such as options, two players, chaos mode, etc.). How would I do it? What would be the code? Thanks a lot :)
  6. PixelPluto

    Changing Text with DnD

    Hello there, I am new to GameMaker 2 and I'm working with Drag and Drop, and I have a problem with text in my game project. I would like to do the following: I click with the mouse (event "Left released") on my text object, and the text changes with every click, like this: click 1 = "Hello,"...
  7. royer14

    GML Difficulties when creating a pause menu with mouse

    Hello how are you, as you have read the title, I have difficulties with this code: if position_meeting(x,y,id) && mouse_check_button_pressed(mb_left) { if (global.pausee == 0) { global.pausee = 1; instance_create(x-60,y+120,obj_popup) }...
  8. N

    Movement for Point and click

    Hello everyone! I'm trying to make a point and click game, like lucasart games, but I can't figure out how to move the player. I can make the player follow the mouse when clicking, but I can't make it move like Fran Bow in a limited space. I use mp_grid to follow the mouse click. Thanks in...
  9. M

    Click not working on no-sprite obj_titles.

    Greetings! I am trying to create an interactive titles object that detects what room it's in, shows appropriate titles on the screen through a draw text action, changes a variable based on the point_in_rectangle function, and finally on the left mouse pressed event executes a command based on...
  10. T

    Mouse Click coordinates (x,y)

    Hi, is there a way to get the mouse click coordinates? I need to know the distance between x,y of LBM when pressed and, after moving it, the x, y when released. Thanks