• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

camera

  1. EricPB

    GMS 2 Camera and Physics Conflict?

    Here is a problem, I am trying to make a physics based game for GMS2. As such I enabled physics for the one test room I have and the appropriate objects, and try to set up the camera. The problem comes that when I have the rooms boxed ticked off as using physics, the camera doesnt display the...
  2. J

    How do I confine my camera's view to be only within the room.

    Haven't quite figured this out yet. Here's my code: In the Creation Event of object oCamera: // Initialize Viewports view_enabled = true; view_visible[0] = true; view_xport[0] = 0; view_yport[0] = 0; view_wport[0] = 320; view_hport[0] = 180; view_camera[0] = camera_create_view(0, 0...
  3. J

    GMS 2 GML Camera move

    hey! when i use: camera_set_view_pos(view_camera[0], 110, 510); to move around the room, it works fine. but then i make my own camera: camera = camera_create(); var pm = matrix_build_projection_ortho(1920, 1080, 1, 5000); var vm = matrix_build_lookat(960, 540, -10, 960, 540...
  4. D

    GMS 2 Make camera area bigger without pixelization

    Hello! I currently have a room set up where I've enabled viewports, set the viewport to visible, and set the camera/viewport size to the default 1024x768. Sprites in the game are all 64x64. My question is this: I'd like to make the camera area larger, so that more of the room shows around...
  5. A

    GMS 2 Code doesn't work

    Hello. I'm trying to make an instance move with the mouse, but I want the camera to move with it, too. I tried simply testing for mouse_x changes, but when it moved the camera, the mouse_x changed, and it moved the camera, ... So I made it that the mouse gets put into the middle, you move it...
  6. S

    GMS 2 Map is Limiting to a Small Size

    I'm having an issue with my game. I can create a map as large as I want, which is fine, but my camera is only following my player until about 14k pixels down. After that, it stops following the player and stays at around that mark. Is this a bug, is this my system limits, or is this GMS2's limits?
  7. B

    GMS 2 Rotating camera

    Hi, I am new to GM and am currently trying to figure out how to rotate the camera using the new camera system. Basically what I am trying to do is have the camera rotate based on a direction from the player object to another object. In other words the camera should be following the player in...
  8. B

    Question - Code Rotating camera

    Hi, I am new to GM and am currently trying to figure out how to rotate the camera using the new camera system. Basically what I am trying to do is having the camera to rotate based on the player angle/rotation. Using the "old" views I guess I would do this by setting the view_angle to be the...
  9. N

    Lock camera off center?

    If I want the camera to lock on my character to the side of the screen. How would I do that? Say I'm facing right. Then I want 75% of the screen to be in front(to the right) of the character. If I then turn it around, so I'm facing left, it should go the other way.
  10. L

    GMS2 Trigger Camera zoom

    Hey people, I am new to GM and would really appreciate it if someone could point me in the right direction. I am working on a top down rpg and I would like the camera to zoom out at a selected area my that my player reaches. I have looked on youtube, and multiple forums and haven't come close to...
  11. L

    Asset - Extension VNgen - Next-gen Visual Novel and Sequenced Animation Engine

    About: Easily create dynamic visual novel content and sequenced animations with VNgen by XGASOFT. Powered by Quantum, VNgen uses a powerful scripting system within GameMaker Studio, breaking the limits of GML to deliver high-quality presentation both in the IDE and on target devices. A...
  12. C

    Camera position and object

    Hello, I am struggeling with positioning a camera in front of an object. In a room I create one object (my_obj) and a camera (obj_cam). my_obj should be in the center of the room. obj_cam should be in one line with my_obj. To position my_obj in the center of the room I use in my_obj_Create...
  13. C

    Windows When healthbar set in the left corner doesnt work correctly

    So I've recently joined this community and made a post and got help very fast so I have a new question. I have made some healthbar but I dont know what is wrong because the sprite is good, but I want a rectangle on the healthbar that let see losing hp when getting hit. My problem is when I set...
  14. R

    Question - Code Camera not following outside room

    Hi, The camera only follows my player inside the room but when I move to the edge of the room the camera just doesnt follow. This is the code im using to create the camera: camera = camera_create_view(0, 0, 1024, 768, 0, obj_player, -1, -1, 512, 384); view_camera[0] = camera; I hope someone...
  15. C

    Android Camera position in relation with object

    Hello, I am struggeling with positioning a camera in front of an object. In a room I create one object (my_obj) and a camera (obj_cam). my_obj should be in the center of the room. obj_cam should be in one line with my_obj. _______________ | | |...
  16. E

    GMS 2 [SOLVED] Making camera stay where the player died

    Hey guys, im having some trouble making the camera stay displaying where the player died, i wanted to create a simple game over screen by writing "Game Over! Press Space to restart the level" (over the player's body), but i simply can't make the camera stay in the position where the player died...
  17. Tulloch

    GMS 2 Setting up a 3D Side Scroller

    nan
  18. Sawyer

    GMS 2 Background problem

    Hello everyone, Actually my viewport 0 is on the player. And i want my background follow my camera or the player to have impression background is imobile. However i don't see how to do it. I tryed to do it with some code without succes. Thanks for help.
  19. M

    GMS 2 creating an instance within the camera view

    hey guys, i'm trying to get a sprite to appear at a fixed position to the screen space... this is what I tried: instance_create_depth(camera_get_view_x(0) + 200 ,camera_get_view_y(0) + 200 , -y-100 ,obj_face) this is in the draw GUI event where i also draw a textbox (i want a face sprite to...
  20. A

    Question - Code importing camera paths from 3rd party program?

    Hi.. Curious about something... I import / export objects and things like camera data between visual effects applications. is there a way to import or convert external camera data into GM to be used in it's cameras? (Or ANY motion vector for that matter for use in other things like paths!)...
Top