1. 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"]...
  2. Foldup

    SOLVED Math, tweening between 2 numbers - Chamaeleon is cool

    Hello my friends!!! I am not the best with math, I am sorry to say, and I have been struggling. I want to use a function like LERP to move smoothly between 2 given values: currentwidth and goalwidth for smooth camera zooming. I thought lerp(currentwidth,goalwidth,.5) was the way to go, but...
  3. Mehdi

    SOLVED Deactivate instances outside of a view? (Perspective Camera)

    Hello friends, I implemented Matharoo's 2.5d camera to add parallax effect to my game: Tutorial However as you may know using 3d projection matrices disables 2d view functionalities. (e.g. viewX,viewY, viewWidth, viwHeight) Now for the purpose of optimization I need to deactivate instances...
  4. Mehdi

    GML View coords with perspective camera?

    I implemented a 2.5D camera using matrices. However it seems using this type of camera makes properties of ordinary cameras like viewX, viewY,, ... unavailable. Anyone knows how can I retrieve theses attributes while using viewmat and projmat?
  5. Heavybrush

    GML How to find the x and y position of the character in base of the camera

    hello I'm making a shader and there is a vignette inside it it would be the lamp if possible at the moment the center of the vignette is just the center of the uv float center = vsize - distance(vec2(0.5),uv); I would like to try to get the xy position of the character (followed by the...
  6. P

    HTML5 GMS 2 HTML 5 Export Camera Problem

    Hi guys! As you can see in the title of this thread, I am currently meeting a small problem with the HTML 5 export. I am using Mac OS, and the mac export version of the game works finely, camera following the player. However, I want to put my game on, so I HTML5 exported the game as a...
  7. ashley.wells3372

    Static viewport / camera

    Hi all, I'm building a game using a viewport and camera for the green area where a charater runs around doind stuff which is working great. The issue I'm having is that I want the orange area to be static so that I can put scrore / inventory or whatever else in but I'm struggling a little. I'm...
  8. T

    GMS 2.3+ Maintaining resolution sprite 'size' in larger resolutions

    Hi all, Context: I have a blank project that only initializes a camera to follow an object. No surface resizing, no scaling or setting of views in code. My sprites are created at a base of 16x16px. My native resolution is 640x360. My viewport[0] is 1280x720 The ideal sprite size in appearance...
  9. Yellowhite

    How do if camera move is more than 0

    I wanna know a specific code to my code, but for that i need know if the speed of CAMERA VIEW is moving or no. Like if view_is_moving {//CODE} else {//STOP CODE} or something like if view_speed >= 1 {//CODE} if view_speed <= 0 {// STOP CODE} but, something functional like that, i will love...
  10. kaminoko

    Job Offer - Programmer (Hiring) 3D FPS camera programmer needed for Android project.

    Looking for: GML programmer with experience in 3D first person games or just 3D cameras in general. Project: Working on a 3D VR GameMaker game using SMF and Colmesh, it's more so a proof of concept for making sitting VR games in GMS2. The camera is locked to the Phone's rotation and returns...
  11. M

    SOLVED Parallax Scrolling ... but with Instances

    Is it possible to create a parallax scrolling effect with an Instance Layer? It works fine with Background & Tile layers, but the Instance layers do not want to attach to my camera. Any thoughts? Thanks!
  12. C

    Drag And Drop Game doesn't run on the correct size

    Hi! I'm using GM for a college project and things are going nicely as I'm using DnD and it's a simple project. However, when I run it, the window size is not 1920x1080, as I set it - it's a lot smaller. It's strange bc I changed it previously and it worked, but now I'm stuck. There are no...
  13. HuntExe

    GMS 2.3+ How do I zoom the camera to keep both players in frame?

    I'm working on a local multiplayer game, and I already coded the camera to stay in between both my players, but how would I zoom the camera in and out to keep both players in the view, like Super Smash Bros? //Create Code: cam = view_camera[0]; view_w_half = camera_get_view_width(cam) * 0.5...
  14. L

    GML [SOLVED] Issue with Camera

    Hello! I tried making my camera Zoom Out by following a tutorial and editing the code myself later, which works flawlessly. But, for some reason, I can't make it stop after an alarm takes off, is there anything I'm doing wrong? Would appreciate help since im still pretty new to this xD Create...
  15. R

    Windows Camera resolution adapt problem

    I need to put a camera in the game with ideal resolution size. The best tutorial of internet has no dropbox files and i need some help! Need more tutorial of Game Maker with ideal resolution size adapt. Compile Errors Object: Obj_camera Event: End Step at line 1 : "view" and "view" are part...
  16. R

    [ SORTED OUT]font in different screen size

    hello guys, well I have a problem and a doubt at the same time. I'm creating a menu system that works great, but I'm having to deal with font and room changes. The camera resolution is much higher in the menu room than in the phase room for example (where the game basically rolls): as you can...
  17. NovemberTender

    GMS 2.3+ Making a camera show the contents of another room?

    currently im making an interactable menu with simple objects and such, im not drawing a menu, im simply making another camera visible in another place and make it act as a "ingame menu". So my question is how can i make the camera be in the room the player is in, but show the contents of a...
  18. john2342152

    what would be the right way to create a "room"

    I wanted to make a 2D platform game, but I still don't know the proportions, the screen and room size and the camera, how do I do these things professionally so as not to interfere in the future?
  19. N

    SOLVED Trying to "Stop" a Camera From Going to Certain Parts of a Room

    Hi all, I'm currently working on a 2D game with a smooth moving camera that follows the player. The camera itself works fine and using clamp() I've managed to keep it only moving within the confines of the room it's placed in. I want to be able to control where the camera goes more precisely...
  20. D

    SOLVED Camera center code is making sprite displace when it moves

    Hello, i've been noticing that my sprite gets displaced to whenever direction i add speed and it gets worse the higher the speed. Then i've made a test removing my center camera code and it seems that for some reason the problem happens when the camera is centered on my player. This is my code...