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

view camera

  1. M

    Camera problem

    I want for the view 0 camera to follow the player horizontaly. The problem is that the camera doesn´t follow the player when it´s exactly in the middle. The camera only starts following the player once the player moves a little to the right from the center, instead of following it with the...
  2. Leif

    Android Gap-between-tiles on wide screens

    Good day. I am making mobile pixel platformer https://forum.gamemaker.io/index.php?threads/cutlass-and-coins-2d-pixel-platformer.96899/ and for the moment i'm working on wide screen support. And noticed, that on wide screen devices (screenshot below is from ) there are gaps between tiles on...
  3. AlanTalan

    GameMaker how can you do a VIEW SCROLLING

    hello and thank you for the help I have a project that I want the camera to not lose the player, which will move in all directions ( x and y ) I tried to use this tutorial but it didn't work: https://gamemaker.io/en/tutorials/fire-jump-dnd-1 as i want to make my game infinite, i need infinite...
  4. T

    WASD to move View

    Coming back to GMS2 after a year away and losign all my files, trying to recreate work I've done before. Stuck on what should be pretty simple: I have a 3200x1800 room tiled with a dirt sprite and peppered with tree sprites so that I can tell when/how the view is moving. All I am trying to do...
  5. I

    GameMaker how to follow the camera?

    I want to look for a way to track the view, I thought with camera_get_view_x(view_camera[0]) I did, but in that method, there is an inperfection: so I was wondering: will there be a way to track the view perfectly?
  6. E

    Camera view size using projection matrix

    What I'm doing: I'm trying to allow a top-down camera to zoom in or out. I've created a custom struct that lets me set camera "modes" that will make it behave certain ways when performing different character actions, but this shouldn't matter. I know that the camera view matrix determines where...
  7. F

    GML view follow issues

    I'm currently working on a top down adventure game where the view follows the player (original system created by Heartbeast): //this Code is in the step Event of the view object //update view position view_xview[0]=(x-view_wview[0]/2); view_yview[0]=(y-view_hview[0]/2); //move view towards...
  8. S

    Legacy GM [SOLVED] Corner Collision Causing Incorrect X and Y Values?

    Hey All! I'm currently working on a recreation of the popular platformer "VVVVVV" and started using the view system in GameMaker to make small, 640x480 levels in my project. These levels are all contained within one room, and when the player walks far enough out of one view it switches to...
  9. A

    Legacy GM Struggling with camera object and views

    So I wanted to try and make the view move dynamically between "subrooms". I created this system for subrooms, where when a player collides with a specific object, it will define the subroom, and a seperate object will define the dimensions of said subroom within the room. The camera object is...
  10. E

    Rotate Room

    From the forum I found this on "view_angle": https://docs.yoyogames.com/source/dadiospice/002_reference/windows%20and%20views/views/view_angle.html In my step event of player1: view_angle[0] +=1; In my room properties, under viewports and cameras I have: Enable Viewports is checked...
  11. A

    Legacy GM move the view to a certain location of the room

    When a player enters to a boss area the camera should move towards the boss and stay like that until it's defeated. I sort of manage to do it, but I discover that if the player moves, while this is happening, it may move a little more to the right or left. also, it moves first horizontally...
  12. T

    out of view destroy with different views

    Need a little bit of help from you guys trying to choose a bullet that gets destroyed if it's out of two views. It's goes something like this If x < xview1 || x > xview1+wview1 || y < yview1 || y > yview1+hview1{ Instance_destroy(); } How can I check the second view without it...
  13. SquiggleyPete

    GameMaker Moving particle effect with camera

    Hi all. I'm using Gamemaker Studio 2. Creating an atmospheric fog using particle system. The problem is that the effect stays anchored in the 0,0 coordinate of the room rather than moving with the camera. I've implemented code that is intended to address this, but it isn't working. (Oddly...
  14. TheOnlyWRT

    GML Questions about views

    Hey guys, so i would like to program in my own views using GML instead of making them in the room editor. I have read a few tutorials about views and i dont completely understand how to code them in. For example, do i put the code in my players object? or in a controller object? also, if...
  15. V

    Game Mechanics Make objects follow the view regardless of view angle

    Hello there, I'm new to this forum, and I entered here so I can look for answers. So I'm working on an engine that allows the camera to move and rotate in many angles. I'm trying to make an object where its 'view coordinates' stay constant regardless of view angle, in other words, make the...
  16. Y

    Legacy GM Views following player working weirdly with my cursor system and with resolution

    Hi, I'm currently making a top down stealth game, nothing big, got some of the mecanics working but im trying to fix a small issue I've had. My views are 640x360 if anyone wants to know. The cursor system I have is that the cursor moves with the player and it works fine untill I move outside the...
  17. W

    GameMaker Score that follows camera

    Hello I am new to GMS2, and am programming a sonic game for a programming project. The last thing I need to do is to show the score, but I need it follow the view. I don't know what code I need or where to put it. I have created an invisible, non-solid object with the following code: x=...
  18. G

    GameMaker [Solved] Can I hide one object (invisible) in one of the views?

    Hi guys. I am making a local multiply shooter game, using split screens. I need a stuff like bush in LoL, where another player can't see you when you are inside and he is not. I would like to know if this is possible in GMS, and how to do that. Thanks!
  19. T

    GML Smooth Camera in Pixel-art Games

    hey, im making the view settings in the room editors, and assign it to an object view that graduately moves towards the player. Of course, half pixels dont exist, so the camera movement does not appear smooth. Is there any way i can make it smooth? I'm upscaling the view with PixelatedPope's...
  20. D

    How could I switch my custom view to another object??

    So in my game you can use a minion to scout ahead in a level but the trouble is I cant figure out how to make the view follow the other object. The player still exists while you take control of the minion too. Here's the code: if(!instance_exists(obj_minion)) { x+= (obj_player.x-x)/20...
Top