• 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!

panning

  1. DrStupid87

    GML Script to scroll a map doesn't work properly

    Hi all. Posted this previously but I can't reply to it for some reason. Did some updates to it on the advice of TheouAegis. So, my project renders an isometric map. I have a function that lets you zoom in on it and that works fine. There's a separate function that's meant to pan the map and...
  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. V

    Legacy GM Snapping to grid after panning with view enabled

    Hello, After a long time I wanted to start Game Maker programming again. However, currently, I have a problem with combining view, panning and drag & drop in GML. The project can be found here. When you start it, you will see some buttons on the right. Without panning, it is possible to drag...
  4. William Garrison

    GameMaker Audio Panning (bug?) Issue?

    So I'm sure this probably isn't a GMS bug or anything, likely something I am doing. My music is starting in the center when I drop my character into the room but then as I progress the music is slowly panning to the left ear only. Now I recently did a proximity sound object that detects where...
  5. Meester Dennis

    Android Panning mobile

    Dear people, I'm looking for an tutorial, extension or some help with panning in an mobile game. I'm trying to create an way to swipe with my finger true the room. So te player can swipe and see everything. I already tried something. My resolution script is: (I'm in the team off Pelistar now...
  6. D

    Smooth panning and zooming made easy

    GM Version: Game Maker Studio v 1.4.1763 Target Platform: PC Summary: Here I will show you a very simple way to enable panning and zooming of your view with the mouse. Good for top-down tactical games and whatnot. EDIT: Code comments have been added to explain the process. Tutorial: Create a...
  7. 2

    Discussion Suggestion: Prevent Losing Room in Room Editor View

    Zooming using the scroll wheel can sometimes cause the room to be 100% out of view if you zoom out, and then zoom in with the cursor outside the room image. It's really difficult to find the room if you do this, and the position is kept even if you close the room. I like being able to see past...
  8. H

    mouse_x gets offset when view_xview is increased

    Hello everyone, I have been scratching my head with this one for a while, after a couple of days of googling around and trying everything I could, I'm giving up on fixing this one alone. I have the following code running in the step event, the goal being to move the view the same way it would...
Top