camera

  1. M

    GML camera following multiple players (pan, zoom, no splitscreen)

    Hi All Im very new to this forum and im writing, because i couldnd figure out how to do this, and the google search didnt help. I d'like to make the camera following multiple players with moving and zooming (no splitscreen). The aspect ratio should always be 16:9. Look at the sketch: In...
  2. W

    Camera not center with character

    While playing around with stuff, I made the camera follow the player. It worked, till suddenly the player is not in the center anymore. It is a few pixels to the right and I have tried everything I could think of, with no prevail. I am completely new to this so I don't know if I missing...
  3. LanderMiskolczi

    Legacy GM Camera Wont Shake

    For some reason my camera wont shake, when I press H the screen should shake, but instead it stays still like normal. Here is the step event /// Follow the player if (instance_exists(oPlayer)) { var xTo = (oPlayer.x - x) / 25; var yTo = ((oPlayer.y - 16) - y) / 25; } x += xTo; y += yTo...
  4. J

    Looking up/down

    Hello everyone. I am making a platformer game and I want the player to be able to look up or down while holding the up or down key for a few seconds. I haven't done much with alarms, so I don't totally understand them. I have the camera movements working, but I'm not sure how to implement an...
  5. jtmx

    3D GMS2 Virtual Reality (Mobile device) camera look

    Hello all, I'm working on a virtual reality game for mobile devices and I'm trying to get the game camera to pitch, yaw and roll with the device's gyroscope using device_get_tilt_* functions. I've come across an issue though, the game camera's pitch (device_get_tilt_z) moves up and down with...
  6. S

    How to drag the camera at high x_border value

    I use the following code: view_enabled = true; view_visible[0] = true; var width = 480, height = 270, scale = 2; var cam = camera_create_view(0,0,width,height, 0, object0, -1, -1, 430, height/2); view_set_camera(0, cam); window_set_size(width*scale, height*scale)...
  7. A

     Can no longer save, change, then re-apply camera view and projection matrix.

    Can no longer save, change, then re-apply camera view and projection matrix. If I try to, 1: Save my current 3D camera matrices. 2: Set my camera to use new 2D matrices for temporary drawing. 3: Reset back to the saved (3D matrices. The 3D camera seems to be upside down. Before the update...
  8. U

    player only shoots to the right, camera doesn't follow player, enemy won't follow player (error)

    Hello and thank you for reading this post! I'm terribly sorry that these questions are probably really dumb! I am making a 2d zombie shooting game as a project for school, but I'm not very good with GameMaker studio 2, in fact, I'm a complete noob.. I'm using Drand and Drop, but sometimes I use...
  9. D

    TBOI HP Style/Camera

    I want to make a room in center, and 16 grey pixels with HP and something around room (first screen). If it's small room, everything is okay, but in high room gray lines will be visible only at the edges of the room. I need this gray rectangle to always follow me, and health over it. How can i...
  10. Meester Dennis

    Android Panning mobile

    Dear people, I'm looking for an tutorial, extension or some help with panning in an mobile game. I'm trying to create an way to swipe with my finger true the room. So te player can swipe and see everything. I already tried something. My resolution script is: (I'm in the team off Pelistar now...
  11. A

    Camera doesn't follow player in duplicated rooms

    Hey guys, I'm stuck at this problem : I'm doing a Roguelike and I want the player to go randomly through some pre-generated maps. I got one map ready (just a straight path from left to right) so when player hits the right end of the path I make him spawn in the next room where the blue circle...
  12. inertias

    GMS 2 Font issue relating to screen resolution

    So above is a picture of a sprite that contains a very small font. My game is at 1920x1080 resolution and my monitor matches that as well. My problem is that when I draw this font to the screen (using the draw gui event), the font only appears clearly depending on where my mouse coords are (I am...
  13. Double7

    GMS 2 How should I properly use camera_set_view_angle()

    Hey guys, getting used to GMS2 now and trying to figure out the camera system. The current effect I am going for is for the camera to rotate to a certain angle on command. However I am currently having an issue where the screen just goes black anytime I use camera_set_view_angle(). The video...
  14. CoconutBun

    GMS 2 Seamlessly Looping Rooms by using Views and Surfaces?

    I've been trying to get a seamlessly looping room working in game maker studio 2. If you ever played Yume Nikki or used RPG Maker its kinda like the room looping in that. I'm a little new to using multiple views and haven't used surfaces before so I'm running into some trouble. My current plan...
  15. Gillen82

    GMS 2 Active Region [SOLVED]

    Hi guys, Hoping someone has an answer for me (and it's probably an easy answer). I am trying to deactivate objects that are outside a region (view plus buffer outside the view), and reactivate them as they come into the buffer zone. The instances are deactivating fine, but only reactivating...
  16. D

    Sub-pixel Camera Movement in GM2

    So I'm not sure if this has already been addressed for gamemaker 2. I'm trying to figure out how to move the camera at sub-pixel increments for my game. I actually had this working in the older version of gamemaker but I wanted to upgrade. I am used to using views instead of this new camera...
  17. Gillen82

    GMS 2 Performance Drop Full Screen [Solved]

    Hi guys, Any reasons you can think off as to why I am losing performance after going to Full Screen? There isn't much in my game as far as objects are concerned (player, camera, surface, solids) I have tried eliminating causes e.g. loading without surface layer, but still the same result...
  18. BulleTech Studios

    Query - Drawing to Camera/View - camera_get_active() vs. view_camera

    I was recently 'pulling my hair out' trying to figure out why my code for drawing a cursor (without mouse_x and mouse_y) to a camera view wasn't working... and I'm still not sure. I was using functions like camera_get_view_x(camera_get_active()); as suggested in a YT video I found "Using and...
  19. AiNaKa

    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...
  20. matharoo

    GMS 2 Smooth Camera + Pan/Zoom [YouTube]

    GM Version: GMS2 Target Platform: All Download: https://www.dropbox.com/s/6npeyqa27jj8tvv/cameras.yyz?dl=0 Links: Below Summary: A tutorial that covers creating a smooth camera and implementing panning and zooming. I mainly made this tutorial to let people know that they don't have to use...
Top