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

camera

  1. Izac

    GML Help! - Camera

    How can i do a camera that locks in the player's postion? How can i do a camera window? If you don't understand what i'm talking about, Please check this website: https://www.gamedeveloper.com/design/scroll-back-the-theory-and-practice-of-cameras-in-side-scrollers Go on the "Terraria" and...
  2. L

    How can I resize a viewport and a camera.

    Hello! I am still new to this and I have been following Shaun's complete platformer tutorial: https://www.youtube.com/playlist?list=PLPRT_JORnIupqWsjRpJZjG07N01Wsw_GJ I have made a room with a working camera that smoothly follows the player. However, (this is not in the tutorial) I want it so...
  3. DrunkSkeeterPilot

    Perspective Camera for a Mode 7 esque game (a la Madden 94)

    Hi, I don't see much talk or many tutorials at all concerning the use of the perspective camera (vs. head-on / top-down orthographic). Nor do I see hardly any GMS2 games being worked on that I can tell are using it. Is the perspective camera not really intended to be used as part of the...
  4. xS89Deepx

    Camera follow player if?

    If player1 above player2 camera follows player1, if player2 above player1 camera follows player2 how can i do that...need help! its two player game :) // create event cam = view_camera[0]; follow = obj_player_1; view_width = camera_get_view_width(cam) * 0.5...
  5. Tangerine

    GameMaker It is possible to draw a tilemap scaled?

    How can I draw a tilemap but scaled? My game is resolution is very low, because of that, drawing stuff inside a surface makes all elements inside to jitter. when the camera moves. My workaround for this is to draw everything inside the surface scaled to the aspect ratio of the game window. And...
  6. Staral

    GML Pixel scales are too big/small (can't get a medium)

    Hi, I've got a camera system for my game, it works fine I just cant find a good size. I have a surface scale of 3 and a camera scale of 1. When it's at 1 I feel like the camera is way zoomed out. (My character is 32*32 pixels btw) and when it's 2 I feel like it's way too close. If I were to set...
  7. thejosving

    GameMaker Translate Shaun Spalding sliding camera tutorial into GMS2

    Hello! I need into translating the code for this tutorial into GMS2, mostly because the view_x, view_y, view_w and view_h functions. I've already tried these functions but It didn't worked for some reason...
  8. Stardust

    Sprite cropping when launching the program

    Hello everyone ! I'm french and new to GMC, i don't know if my writing is understandable or if i'm on the right topic but it's sort of related to "programming" i guess So here's the thing: I created a room and set the camera with the same height and width but when i launched the program the...
  9. B

    High resolution application surface with rotating pixel art?

    I have a pixel art game with some rotating sprites. Setting the application surface to match the camera view size allows my sprites to rotate freely while still matching the rest of the pixel art. However this causes some issues relating to sub-pixel camera movement, where the camera can see the...
  10. Jotesco

    SOLVED Vertical Border

    I'm trying to do when the player down, the camera down, when the player up the camera up,but it's not working, i set the Vertical Border to -1 and even the camera only goes down, when the player goes up nothing happen. Please help i'm not understanding how it working.
  11. P

    Ghost objects still in room while sprites drawn on GUI Layer + camera zoom

    TL;DR - I have a HUD area in my game that is drawn on the GUI layer and situated at the bottom half of the screen - The HUD includes draggable tiles that players drag from the GUI layer to the "playable" game area (think scrabble tiles being placed on a scrabble board from a HUD) - The game also...
  12. TheOnlyWRT

    SOLVED Camera Not Following Player

    Hi all, I have been trying to get a pixel-perfect camera for pixel art style games. For some reason, the system I have used in platform-style games (mostly following these links: LINK, LINK, LINK) is not working on this pixel RPG project I have been working on. In essence, everything seems to...
  13. M

    Parallax problem

    Hi, I want to share a problem I have with my parallax background. I am using the following code in the player object create event to make a camera that follows it: camMain = camera_create_view(380,0,1096,768,0,obj_cam,-1,-1,520,0); view_camera[0] = camMain; idLayer0 =...
  14. M

    Draw Score problem

    I have a message that shows a number that increases every second. I am using this code on the text object: Create event: map_string = "0123456789"; bitmap_font = font_add_sprite_ext(spr_puntos, map_string, false, -10); draw_set_font(bitmap_font); puntPos = 1; punt = 0; alarm [0] = 60; Step...
  15. CharlieBrown

    SOLVED Camera Jerks Outside of Room Bonds When Zooming Out

    So I have a camera setup with zoom and scroll, and everything is perfect except one thing: when at the right edge of the screen while not zoomed all the way out, when I attempt to zoom out, the camera does this weird sudden jerk to the right outside of the room, then quickly jerks back inside...
  16. M

    Camera follow problem

    Hi, I want my camera to follow the player. I am using this code in the player create event: view_camera [0] = camera_create_view(416,0,1090,768,0,obj_jugador,-1,-1,520,0); My problem is that somehow my screen looks like this: The camera still follows the player, but only when the player is...
  17. J

    GameMaker Camera Object not working

    I'm running into an issue where my camera object isn't acting the way it's supposed to. For some reason, the aspect ratio on my game is stretched upwards and the camera won't move, despite the camera object following the player. I know this because I attached a sprite to the camera object and it...
  18. C

    I need idea for objects following screen

    Im creating a shooter game but I have a big trouble with cameras. I dont know any camera code. Its confusing me. Already using viewports in room settings. The camera following my player but i wanna make logos that following screen like an ammo logo. Or health logo maybe. How can I do it? whats...
  19. C

    Need help about healthbar following screen

    this code was working on old GM but in the GMS2 Studio, it didn't work. I dont create any camera object. Just using the viewports in room settings. Can someone help about it? draw_healthbar(view_xview+65,view_yview+32,view_xview+320,view_yview+63,obj_madmad.can,c_black,c_red,c_blue,80,true,true)
  20. genorpg

    GameMaker Asset Layer breaking with 3D camera

    Hi all, I've had some problems with the room editor in GMS 2. I'm trying to implement pretty large assets into some asset layers to create parallax background effects. My problem is that the large assets seem to break when I run the game. This is the second time this has happened to me, and...
Top