mouse

  1. paulog

    Problems with mouse object placing speed

    Hello! I'm making in a game in GM1.4 and in the game the player can place objects in the room in a grid by clicking the left mouse button and draging it across the screen. The issue I'm having is that, if the mouse moves too fast, some places where objects should have been placed are empty. I...
  2. paulog

    Legacy GM How to invert mouse movement?

    Hello! I'm making a game in GM1.4 and the room has a draggable view, that can be rotated 90º at a time. Everything works fine if I compile it to Windows, but in the HTML5 version the mouse movement is flipped when the view is rotated. I don't know why. Is there an easy way to simply invert...
  3. Y

    Question - IDE Is it possible to emulate the middle click functionality?

    Hey folks, The mouse I currently use (Logitech MX Anywhere 2) does not have the ability to perform a middle click as input. I am wondering if it is at all possible to emulate the documentation functionality that would otherwise be present when selecting methods in the text editor. Thank you.
  4. P

    Display_mouse_get_x(y)

    Hello everybody, I have question: what does this function relate on? I mean when I resize my window(here is the code of the resize): surface_resize(application_surface,VIEW_W,VIEW_H) window_set_size(VIEW_W,VIEW_H); view_wport[0]=VIEW_W; view_hport[0]=VIEW_H...
  5. UnderdogKeeper

    GMS 2 GML, How to Change Sprite depending of a mouse placemant?

    Hello, guys and gals. I'm very new to the GameMaker, and even newer to this place. So I hope I'm posting this in a right thread, and I hope my problem will not irritate you or something like that. Before all of this I just want to repeat that I'm a rookie beginner, so all of this stuff is pretty...
  6. TheOnlyWRT

    Creating a bullet relative to a rotated sprite

    Hello! I have a top-down shooter where the player shoots towards the mouse with both the player and bullet sprite rotating towards the mouse. However, I am trying to get the bullet to spawn at the tip of the gun on the player's sprite, but I am having a real hard time doing that. The code I...
  7. kureoni

    SOLVED sprite_index in x and y axis change

    thats the code //for y axis if(y > mouse_y){ sprite_index = spr_player_back } if(y < mouse_y){ sprite_index = spr_player_front } if(y != yprevious && y > mouse_y){ sprite_index = spr_player_walkback } if(y != yprevious && y < mouse_y){ sprite_index = spr_player_walkfront } if(y < mouse_y...
  8. samspade

    Design Step Events Versus GML Events

    Which would you rather use and why: an object where everything is in the step event, an object where everything is in multiple events? Example, a button object that has left pressed event, the mouse enter and leave event, the left released event or one object that does the exact same thing but...
  9. O

    Mouse clicks are not working with laptop touchscreen with HTML5 and Firefox/Chrome.

    I have an application that uses a lot of Mouse->LeftPressed events and it is exported to HTML5. When I run it on a Windows 10 Laptop with Edge it works fine. But Chrome and Firefox won't register the events. However, MouseEnter events seem to register when I touch the screen. I have to use a...
  10. O

    HTML5 HTML5 mouse coordinates are offset when browser is scrolled.

    Hi, I am having issues with an HTML5 game. The game is 800x600 and is centered in the browser window. Even though the canvas is completely within the visible region of the browser page the browser still adds scrollbars. If these move at all then the mouse coordinates in the canvas will be...
  11. If Programable_Matter

    Windows How to make Program with the ability to highlight the text with the mouse (Cursor)

    I've been making a lot of programs and they have been going well however I cannot make the text that has been drawn "highlightable" like you would be able to in Microsoft Word, Notepad, or other software which deals with characters. Is there are particular code which can enable me to highlight...
  12. G

    Custom Cursor in Drag and Drop

    Hey, I'm developing a sort of five nights at freddy's style game for my girlfriends birthday coming up, and one of the things i wanted to include is a custom mouse cursor while within the game. However, i don't have any coding experience except for other types of games i've made in game maker...
  13. Binsk

    Asset - Scripts UBG 3D↔2D Translator

    Who would have thought that clicking on something in 3D is such a pain? Well, let my free extension fix that for you. Download: Marketplace Upset Baby Games What is UBG 2D3D Translator? UBG 2D3D Translator is a redesign of my extremely old Mouse 3D Interaction extension. This time it is...
  14. bsabiston

    How to block/cancel mouse event?

    I have a big menu overlay that pops up from time to time, covering my regular object-based buttons. The menu is not an object -- I detect UI touches using mouse_check_button(). Is there a way that when I detect mouse down and handle the mouse click in my menu overlay, I can then cancel the...
  15. KyleRansford

    GMS 2 Move Player Towards Mouse/Touch x, y

    Hello, I'm making a mobile game where it's played in portrait mode and the screen is auto scrolling upward with the o_player moving in a top down style movement and while I have some input methods already done, I'm trying to make an input method where when the player "touches" a part of the...
  16. FoxyOfJungle

    GMS 2 [SOLVED] How to get mouse position relative to surface area?

    The main problem: As you can see in that GIF, I can scale it so that It will always stay 1:1. But I want to zoom in and out, and this is the problem. I will explain next: I created a surface instead of using the Draw GUI event (I need to, because later I'll need to copy that created GUI...
  17. J

    GML How to check that mouse is moving?

    I think the title explains the question that I am asking pretty well. Thanks in advance to anyone that answers.
  18. T

    Windows Mouse action control

    Hey i'm using DnD to make a little game but came across issues with distance checking, made a little tree object and allowed the player to hold the left mouse button to chop the tree down, all works well, tree suffessfully chops just having trouble with distance what would be the best approach...
  19. Cheezeh3d

    HTML5 HTML5 draw_text_transformed not working

    Hello people. So I have been working on a school project for a while and I hit a snag with HTML5 that I can't seem to fix. I have a login screen with simple homemade text boxes, but to type in the text box you need to click on it. I've troubleshooted a lot, so I know this is the issue. I have...
  20. JasonTomLee

    HTML5 How do you prevent the page from scrolling when using the scroll-wheel ?

    Hello! I wanted to know if it was possible to prevent the page from scrolling when I use the scroll wheel inside the HTML5 game. Thanks!
Top