1. Roubjon

    GMS 2 camera_get_view_width & height always returning 0

    Hello, I've been trying to mess around with the camera system in GMS 2, however I've run into a problem whenever I try to use the functions camera_get_view_width and camera_get_view_height. Whenever I try to use them, they always return the value of 0. I'm not quite sure what I'm doing wrong...
  2. 6

    3D Have a problem with 3d draws and camera

    Hello I have a problem : I make a fps in 3 dimensions and I made the camera and a weapon I placed in front of this camera. But I want : when I move the camera in a specific direction I want the weapon to follow the movement of the camera and turn with it. For exemple : When I move the camera to...
  3. gdkid

    Legacy GM Smooth Camera Zooming Out

    Hi guys I've made a small game called "Core" on Android. About gameplay, you control a small square running through endless circle, each time the square lands on a "pad" , it jumps to next circle. Try not to be pulled into the center of the screen and you're OK. Gameplay : Download here on...
  4. seanm

    GML Camera Lerp isn't actually smooth.

    Hey, it's been a while since I've been on here. I'm back with another issue that most people will likely find to be too small to worry about, but I'm worryin about it. My Problem I'm using lerp to smoothly move my camera to my players position. Super basic camera that everyone does. x +=...
  5. R

    [SOLVED]Draw surface to all views

    Hi everybody, im using Gamemaker Studio 2. I was just wondering: i wanted to make some "fake" light effects by creating a surface and subtracting the light sprites from it so it kind of creates a light effect. Everything is actually working fine until i wanted my game to be splitscreen. Now...
  6. G

    Question - Code [SOLVED] I just don't understand Cameras...

    so i tried setting up a camera today and pretty much borked my project. these are the errors i'm getting... the solutions listed in the thread don't seem to work or are not applicable. (my computer is up to date, drivers are up to date, i have restarted my computer, and i'm not creating a...
  7. L

    Legacy GM view angle rotation but not from center.

    hi, im asking again if anyone knows how i could rotate my view, but not from the center? i know it has to be something like this: STEP: view_angle+=1; view_xview=view_xview+view_angle some math stuff. view_yview=view_yview+view_angle some math stuff.
  8. J

    Camera Control Questions

    Hello, I'm surprised there are not more tutorials on panning the camera to create in-engine cutscenes and such. Hopefully the gurus here will have some answers. I am making a platformer game where the camera follows my player object with a viewport sized at 640x480. I have made the room six...
  9. M

    GMS 2 how to set object to go center of the camera?

    Hey I want my an object to go center of the camera. I tried this but it is not working. :( I am using Gamemaker studio 2 x = (camera_get_view_x(view_camera[0]) + camera_get_view_width(view_camera[0]))/2; y = (camera_get_view_y(view_camera[0]) + camera_get_view_height(view_camera[0]))/2;
  10. V

    Screen shake in GMS 2?

    Hello! I ussually made screen shakes with view_xview and view_yview but now tis removed!¨ If someone could help me out and show me anoher way of making it, that would be great! Thanks in advance :)
  11. zbox

    Asset - Extension Live Tracking - CamSurface Demo (Android)

    Tracking - CamSurface Demo Marketplace: Category: Extensions Price: $4.99 Modules: Android Description: Note: This demo requires the CamSurface asset Android Only. This asset demonstrates how to set up colour tracking using the phone's camera. All the tracking logic is...
  12. Y

    Question - Code Restrict camera movement

    Please give me insight how to achieve this: I have room with width 3000, but i want camera follow only to 2000 (the rest of room reserved for player 2, and separated by wall) I digging into camera manuals and testing different approaches whole day, still no success. <Image Link Removed - Malicious Domain Detected>/nDyj5F
  13. Shut

    GMS 2 3D perspective projection and cameras

    I have a top down 3D projection set up and I'm trying to find a way to make views act normal. (similar to 2D/default behavior) Is there any solution to this? Right now, when using camera_set_proj_mat - view_x and y coordinates are messed up and return useless values. 1. Is there any way to...
  14. M

    Legacy GM D3D view problem

    Hello everyone. I'm here to ask a little help about my project on GameMaker : Studio 1.4. I'm a beginner with the 3D in GameMaker so I've made a tool (with GM:S) to return variables in real-time for the d3d_set_projection. This tool will help me to calculate the perfect angle of view for my...
  15. GMWolf

    GMS 2 Click & Drag Camera Pan - GMWolf

    GM Version: GameMaker:Studio 2 Target Platform: ALL Download: N/A Links: Youtube Video Summary: Equiped the new Gesture events and GMS2's camera system, we look at how we can implement a simple, but effective camera panning system, allowing the player to click and drag the view around. Tutorial:
  16. M

    GMS 2 changing camera with code[solved]

    Hey Is it possible to change camera width and height with a code? I am using game maker studio 2.
  17. Desix

    GMS 2 Camera not moving

    I'm new to GMS2 such so that I'll come across simple issues unfortunately. My camera position is perpetually at (-1, -1) despite being set to the correct position (I know it's been set correctly). I'm obviously doing something very wrong somewhere. Create event of persistent screen control...
  18. A

    Legacy GM [SOMEHOW SOLVED]Strange Graphical Distortion?

    I have a strange liitle issue. I have a sidescrolling game and when I bumb the head of my character in the block/collision above me, my character and only my character get a pixel distortion. If I do it again, the pixel distortion disappears? Something wrong with my "view-center the character-...
  19. A

    [SOLVED] Cam... has to be simple fix

    I'm simply trying to move the camera. I've read tutorials. I've googled. I've done everything I can think of. I have a simple on-step event checking for keypresses: if (keyboard_check(vk_up)) { view_yport[0] -= 1; } The problem is that the camera moves but then I get tearing because the...
  20. Ggbah

    View displaying seams between tiles

    I tried 2 different methods. Sticking my view on my player object and slowing the hspeed/vspeed to .5... this prevented my screen from jumping several pixels and just not looking good. I also tried the "Juicy Camera" effect that can be found pretty much anywhere on google...