1. KingRegicon

    Simple Viewport Setup- Can I Toggle Tall and Wide?

    Hello, everyone! I have been practicing GML for a few weeks now, and I'm really loving the problem-solving aspect of programming. The manual, online tutorials and GML forum posts have helped me through every problem I've faced so far, but now I must write my own post in desperation. The Setup...
  2. L

    camera problems (PLEAS HELP)

    when I move the camera, either way, it is stuttering, it's been hours trying to fix it
  3. L

    GMS 2.3+ Camera stuttering

    my camera is stuttering when I move it no matter what i do. can someone help me? {game maker studio 2}
  4. B

    GMS 2 Object flicker/stuttering when scrolling (low resolution)

    So I've recently started work on a 2D platformer which I originally planned to be made up of short level, single screen levels. It's really low-res: the viewport and camera are 300 x 169, and the player sprite is is 9 x 9. I figured this wouldn't matter too much with it being single screen...
  5. F

    3D Help/Advice calculating the 'Up' vector of a 3D projection

    Hi Everyone! Apologies for asking what may well be a super obvious question, but I was wondering how to accurately calculate the xup, yup, and zup values for the d3d_set_projection_ext() function. All of the tutorials I have watched and read have set xup, yup, and zup to (0,0,1) or (0,0,-1)...
  6. gibsonfan2332

    GMS 2 Camera Follow Player, Sprites are Shaking/Vibrating. Rounding x and y only causes direction/motion problems.

    I am trying to make a simple boat object with a camera that is following the player from the top/behind. Basically when you turn your boat, it stays right in the middle of the screen, and the world is what appears to be moving because the camera is following the player as well as rotating along...
  7. JeanSwamp

    Vertical Scrolling Parallax Issue

    Hello, I've been tweaking my camera every now and then because after adding new features to it, I might run into new problems. Currently I am having issues with the vertical parallax scrolling my layers. This is for a 2D Sidescroller. This is how I am scrolling the layer_y var _ypos =...
  8. KyleRansford

    GMS 2 [SOLVED] Game Not Scaling Correctly When in Fullscreen

    I have a game where it's camera size is 640x360 and the viewport is 1280x720 and when the game is run in Windowed Mode, it displays fine (no pixel distortion). But, when I set it to full screen, (using a 1080p monitor) the pixels get stretched (even though it shows black bars and I have it set...
  9. J

    (Solved)Rotate Player movement with camera view rotation

    So atm i can rotate the camera and the player matches the camera angle, im trying to add/subtract the angle of the camera view to the movement code of the player. if i rotate the camera 180* and move the player up, it will actually be moving down, because its not taking into account the...
  10. LanderMiskolczi

    GMS 2 Camera_get_view_x / y only returning 0

    So i've been trying to get my buttons to follow the camera, and to do this, I need to get the camera x and y, but using the object it makes it lag behind. But when I use this function it only ever returns me a 0. Here's a gif to show you what I mean. If you look to the left, that is printing...
  11. Scienitive

    How to curve the camera?

    Hi guys I want to curve the camera but I don't know how to do it. Can you help me? What I mean by curving camera is : in the image the "HOT" text is curved like its in a old tv screen. That's the effect I want to make.
  12. M

    SOLVED Changing Viewport width and height does nothing

    So I'm trying to make my game fullscreen dynamically, Changing the width and height of the camera works but changing any information of the viewport doesn't do anything at all. //changing viewport information, not working view_enabled = true; view_visible[0] = true; view_wport[0] =...
  13. zendraw


    so im creating a custom camera, will it constantly create cameras if i set the creation function to a makro or i shuld just create it with a global variable?

    How do I make my platformer game, act like a platformer game?

    In traditional platformer games you would have a rectangular room where the player can move left or right. And depending on which direction you move in, more of the level will be revealed to you, as you go. How do I do that in gamemaker? As of right now, I just have a square room for a level...
  15. JeanSwamp

    Vertical Parallax 2D Sidescrolling

    Hello, I'm having issues trying to get a good looking vertical parallax. I notice most people just do layer_y(layer_id, y/speed); but this doesn't really work very well, unless your room height is pretty much always the same, sort of a Super Mario level. I'm trying to achieve a result where if...
  16. JeanSwamp

    GMS 2 Zoom Centered To Player

    I'm trying to make a zoom for my player on a sidescrolling platformer. Currently everything works flawlessly expect when switching from zooming in to out, since the pos is relative to the top left corner and not the center, there's a quick repositioning on switch that looks very ugly. I've...
  17. Freddie The Potato

    3D Finding Camera to World Matrix

    Heya! I've been struggling trying to create a function that converts 2d screen coordinates into a 3d raycast. I think I've found a good way to do it, but it involves transforming a directional vector from camera-space to world-space. I understand that in order to convert world-space...
  18. Freddie The Potato

    3D Camera is being drawn to surface upside down

    I've created 2 cameras. global.mainCamera = cameraCreate(); global.utilityCamera = cameraCreate(); A cameraController object updates mainCamera's view and projection matrices every frame based on its position and rotation. I can draw the scene onto a surface like so...
  19. Tyler Ryals

    GML Fixed FPS Camera issue

    In my player object I have a camera example I followed in this tutorial, but it arch's just right for the camera to be more "first person" like. While this is fine in most cases, I really want to get my Camera to remain inside a fixed set of boundaries (like stopping on walls and such so there's...
  20. Ruimm

    Asset - Graphics Easy Cam - Free, simple to use camera

    Hi, I just published a simple Camera asset on the marketplace. It allows you to easily create Cameras and it features: - Camera rotation - Camera Zoom - Camera Position - Screen Shake - Fixed camera size (independent of screen resolution) Here's a video of the example that comes with the...