• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

camera

  1. The_Scientist___

    GMS 2 Cameras not Working with Multiple Layers

    I'm not sure if I'm being a complete idiot, but I'm still learning the new cameras system. I've created a room and the camera works fine, doing everything I want it to, but then I add a new layer to the room and then I can't see any objects. I know they exist, since I can see them drawing...
  2. C

    drawing objects on Camer X & Y after settings it from matrix_build_lookat

    hi guys, Im stuck! I have been doing some practice work and following some tutorials for smooth camera flow when following the player, However now I am trying to implement an inventory to the game. the problem I am running into is that by having a camera object that sets matrix_build_lookat and...
  3. Gunnar the Clovis

    GMS 2 [SOLVED] camera_set_view_pos Silently Freezes on HTML5 Target

    Hello, Whenever I run the function camera_set_view_pos on the HTML5 target, the game image silently freezes (meaning no errors are given). The game is still running as inputs are read and sounds can be played when inputs are made, the game can be restarted, but the image is completely frozen...
  4. T

    view_camera[0]

    Any time I use view_camera[0] in HTML5 the game freezes. Is there another way I can manipulate cameras without assigning a camera? Can I manipulate the default camera at all without assigning viewports?
  5. E

    Blurry sprite movement

    I know this question has been asked many times, but I'm having great difficulty moving forward with my game. It seems that no matter what I try I can't remove blurring when my sprites move. I recently started a completely new game for testing with just one 32x32 sprite and simple code to move...
  6. I

    Android [SOLVED] Camera screwing up graphic

    Hello everyone, I'm so sick of this problem and 'Ive been trying to solve it for such a long time, that I've decided to look for help somewhere else. I'm talking about cameras. In all of my games I have one big problem with cameras. And that is smooth camera movement to player. I have this...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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)...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top