• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!


  1. T

    Dragging objects with the mouse on branching paths

    Hello, So I have sort of a special situation, since I can't find any existing solutions online. I am programming a Drag and Drop puzzle game and I need to drag an object around in a grid. Here's a snapshot so you can picture my goal: So I need to drag the circle along this grid and get it to...
  2. G

    Drag Queen Pixel Brawler

    Hi fellow GameMaker game makers :) I've been working nights and weekends over the past two years to develop Super Bearded Dragons, a pixel brawler where bearded drag queens fight over cash tips that rain down from the sky! If you like sassy mermaids, laser breastplates, and awful puns, this is...
  3. paulog

    Legacy GM How to make draggable window

    Hello! I'm making a game in GM1.4 and I want to make a draggable window but I'm facing some issues. The draggable part I have figured out, but there are two problems: 1 - The game uses a view smaller than the room, and the player can drag the view across the room. I want the window to stay in...
  4. W

    GML [SOLVED) Stacking game?

    Hi I'm having a little trouble finding the right (and working) solution for a "stacking game". Basically I have some dragable blocks that needs to be stacked in the correct order. These blocks are taking from an array. The first block is Hydrogen (H) with a value of 1, the second is Helium (He)...
  5. P

    GMS 2 Drag an object along a branching path

    (I'm new to these forums, and to GMS2 in general, so if there is anything wrong with this post let me know!) I've been trying to make a little minigame where you have to shift gears when prompted (like in a car). I want to be able to click and drag the handle along the paths towards the...
  6. P

    How to do "AND" "OR" and "XOR" in drag and drop

    I've kind of got the hang the drag and drop hierarchy, however I'm trying to do an "&&" statement in drag and drop logic and I can't figure it out. Can anyone help make sense of this? Thanks in advance.
  7. P

    Can't figure out how to wall hug (Drag and Drop)

    Hi everyone, I have a top-down game I'm starting to learn, and I've got the directional change etc down pat, and the collision with the walls works. However, when I collide with a wall I cant move along that wall while walking diagonally. It seems to almost stick me to the wall and restrict my...
  8. Pfap

    iOS Turn off multi-touch

    I'm using the built in gesture events and they work good, but when testing on ios I run into issues when the player performs a drag with 2 fingers. Nothing immediately jumped out at me while checking through the manual, but is there a way to prevent the device from registering multi-touches?
  9. Edwin

    Legacy GM [Solved] Dragging object relative to mouse position?

    I want to make a simple object dragging system, but when I drag the object it teleporting to mouse position relatively it's position offset. How it looks like: How I want it to look: Well, I tried to animate it realistic and I hope you get my point. So, how I can add mouse position to...
  10. A

    How To: WASD or Arrow Movement with only drag and drop (No Scripts)

    Hey everyone, new to the forums but I've been tinkering with GM for a while. This may be old news to some people, but if you're like me, and have googled this exact topic only to get answers that are excellent and work well, but involve using scripts in your game. This can be great, because the...
  11. L

    Gap between my solid objects when colliding?

    Hey guys, I'm new to Gamemaker Studio 2. I'm using the drag and drop features to create my game. What I want is for the blue box to bounce back and forth between the two grey walls on either side. I have the movement down, but for some reason the blue and grey box arent actually touching. I...
  12. P

    GMS 2 Mouse-drag object goes through wall

    I have an object (uses physics) that I drag around with the mouse. Create event code looks like this: depth = -1000; grab = false; xx = 0; yy = 0; Step event code looks like this: if(grab==true) { xo=phy_position_x+xx; yo=phy_position_y+yy; phy_speed_x = mouse_x-xo; phy_speed_y...
  13. ProjectGamesInc

    GMS 2 Problem with Drag event

    Hi all, i have a problem with a Drag Event on my android phone. I have an Obj with this code: Testing on PC return the result i'm expecting, it drags the view and the objects correctly. On the android on the other side, this dosent work. i've checked with a text and the "Global Drag Start"...
  14. Pfap

    Question - IDE drag end event not firing

    Hello, I was playing around with the gesture events today; really trying to get a thorough understanding of them, so I can eventually implement smooth touch controls. I ended up with a snake like game accidentally, because the drag end event won't fire. I'm using all the default configurations...
  15. C

    Android How to detect drag direction?

    I'm new to mobile development and I'm struggling a bit with the gesture detection. Can someone please offer me a simple GML solution for detecting the direction that the player drags their finger, before releasing? I don't know how to do it in GML, so right now I am using the DnD Drag Start...
  16. R

    Legacy GM Scrolling menu with drag n drop android

    Hello! as the title says I want to build a menu wich is scrollable and contains drag n drop element. There is games using this, but I don't know how to make it in GMS. My first idea was to just simply draw on a surface the menu elements, and calculate the swipe, and scroll according to it, but i...
  17. M

    How to take an object with the mouse and drop it

    Hi , i'm not a coder , and i don't know how to take an object with the mouse , move it and drop it after . If u don't understand , i want to create a chessboard and idk how to move the piece with the mouse only . I tried with the up/down/left/right , but i cant move only one piece , because they...
  18. Dagoba

    Android Donuto Drag

    Do you think that your finger has good coordination and is fast enough to drag a Donuto over to the other side? If yes, then you should try out Donuto Drag from Google Play store! Download: https://play.google.com/store/apps/details?id=com.feleroid.DonutoDrag About: Donuto Drag is a casual...
  19. A

    New to GM2 need D&D help

    Hey guys, trying to see how far i can get just with D&D Needing damage pop ups to appear then fade at the enemy, as it takes damage from impacting bullet obj. any help on the subject would be greatly appreciated.
  20. B

    Legacy GM Inserting players in cell

    Hi,i nedd some help with this,i have 2 stickman in my game and i made a cell(the cell is a square) and if you drag one of the stickmans into the cell it snaps the stickman right in the middle of it,and if you already have one of the stickmans in the cell and you try to drag the other one into...