camera

  1. K

    SOLVED Rooms within Rooms and Camera View Constraints

    Hello, Basically I'm trying to accomplish something like how Metroid or Super Metroid handles its "camera" and room transitions. What I want to do is draw various rooms using tiles within one GM Room asset, and the reason I want to do this is that more objects than just the player will be...
  2. Telorr

    SOLVED Creating object that zoom automatically when created

    Hi everyone! I'm a newbie here, so I need your help I want to make object that when I created it (call it oZoomIn and oZoomOut), it will zoom in automatically (oZoomIn) and zoom out automatically (oZoomOut). I don't have any idea to do it, because I don't understand about camera zooming yet. My...
  3. 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...
  4. L

    camera problems (PLEAS HELP)

    when I move the camera, either way, it is stuttering, it's been hours trying to fix it
  5. 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}
  6. 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...
  7. 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)...
  8. 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...
  9. 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 =...
  10. KyleRansford

    GMS 2 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...
  11. 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...
  12. 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...
  13. S

    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.
  14. 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] =...
  15. zendraw

    cameras

    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?
  16. COMMANDERY11

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