• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

drag

  1. C

    GameMaker How can I make drag/drop object with mouse smoother?

    I'm trying to make a card game with GameMaker and currently stuck with how to make dragging a card with mouse feel smooth. The card is shaking very hard and it looks like when the game is running with 30 fps. // on mouse down for the first time var offset_x = mouse_x - x; var offset_y =...
  2. JeanSwamp

    Camera Jumps on first drag

    Hello, I have a very simple drag system for my camera, with a setup as such: Create: position_x = 0; position_y = 0; new_room_x = 0; new_room_y = 0; Drag Start: position_x = event_data[? "posX"]; position_y = event_data[? "posY"]; Dragging: new_room_x = position_x - event_data[? "rawposX"]...
  3. D

    how to make dnd collisions only for a specific enemy

    context: a collision block for only the enemy to collide on but the player wont collide! Please GIMME DND CODE NOW
  4. M

    Android How can i create drag of screen view on Android platform using GM 2.3.3

    I was following the below tutorial. I am trying zoom and drag screen on Android platform. But i am failed to implement both correctly. For example of dragging screen, How can i do it in android screen like we do in farming game? In farming, we do zoom in an area and then dragging/moving the...
  5. 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...
  6. 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...
  7. P

    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...
  8. 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)...
  9. P

    GameMaker 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...
  10. 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.
  11. 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...
  12. 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?
  13. E

    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...
  14. 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...
  15. 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...
  16. P

    GameMaker 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...
  17. P

    GameMaker 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"...
  18. 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...
  19. 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...
  20. 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...
Top