• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

camera

  1. FoxyOfJungle

    SOLVED [DISCUSSION] I need opinions (and help) regarding building an interface (views, surfaces, cameras, Draw GUI...)

    Hello ! Look at this interface image: This is an interface. I want to use the DRAW GUI event to draw ALL the interface of the program I'm doing (everything inside it...), however, I need to draw the camera view in this middle area (where is the rabbit). The questions: 1 - How would I do...
  2. André Luiz

    GMS 2 help!

    I want to make the character's life bar follow the camera, but I can't do that, so i need your help to send me some toturial or write some code that helps me. here's my camera code: { #region Movimentação da câmera halfViewwidth = camera_get_view_width(view_camera[0]) / 2; halfviewHeight =...
  3. André Luiz

    SOLVED Help with camera!

    Hi, I'm Brazilian so I apologize for any English mistakes, okay let's start, I was playing with the game maker studio 2 and there came a time when I had to make a camera for my character, but I couldn't, I saw several codes and videos and I got this flawed result: #region Camera halfViewwidth...
  4. Claspo Jones

    GMS 2.3+ 2.3 Sprites Not Drawing

    Whenever I run my game none of the sprites or text draws, at first I thought the camera wasn't in the current room, so I used camera_get_view() and show_debug_message() to check, and it told me the camera was in the middle of the room. I tried adding draw_self() to my player object, but still no...
  5. 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...
  6. 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...
  7. 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...
  8. L

    camera problems (PLEAS HELP)

    when I move the camera, either way, it is stuttering, it's been hours trying to fix it
  9. 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}
  10. 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...
  11. 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)...
  12. 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...
  13. 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 =...
  14. 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...
  15. 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...
  16. 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...
  17. 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.
  18. 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] =...
  19. 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?
  20. 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...
Top