camera

  1. PlayerOne

    GMS 2 [SOLVED] Drawing an object on screen

    So far this code will position an object on screen (not in the gui) and can be interacted with. This all works as intended. However every-time the player moves the object in question will shift slightly while still staying in place. I checked other forum posts for a solution but the results...
  2. B

    Windows Is it possible to do a camera like the one in final fantasy tactics ?

    Hello, I would like to know if it's possible to do a camera like this in GMS2. If so, can you explain me very shortly how to do. Thank you :)
  3. PlayerOne

    GMS 2 draw objects within camera view & re-initialize a for loop?

    As I'm about to complete my inventory system I have 2 problems that I can't resolve on my own. 1) How do you draw objects to the GUI and having said objects follow within the camera? I know this is possible given that I have the code for GM8 lite, but since transitioning to GMS2 the code itself...
  4. I

    screen streches out when room size ratio doesnt match

    i have a small room (an indoor house) and the aspect ratio of the room size is 2:1, meaning the room width is 400 and height 200) and my screen is bigger, defualt size (1024x768), which causes the screen to be drawn very streched and ugly. note: im not very good with everything related to views...
  5. T

    GMS 2 Camera Problem after Room Transition

    I have a problem with the camera when the Player goes to another room. The player looks really weird and stretched. The player has to look the same regardless of the room size. For example if I walk into a house. The room will probably be smaller than a room for a forest. Normally the game...
  6. H

    GML Camera view not loaded fast enough for room switch transition

    Hello there, in our game I added a room switch feature, where when hitting Tab on the keyboard the game switches from one room to another with a slide up/down transition. For this transition I followed the blog post here: https://www.yoyogames.com/blog/387/surfaces-and-transitions-part-1 I...
  7. J

    Smooth transition camera

    Hello, I have a problem. I have a big room of 3840*2160, and a view of 1920*1080 (at the top-left of the room), i want to make a smooth transition to the top-right of the room smoothly, when I click on a button. All of tutorials do this but with a view that follow the player,i don't follow...
  8. T

    Multi Object Camera

    Hey I was looking for a smash brothers style camera where the camera zooms out when players move apart from one another and zoom back in when they get close. I found one and imported it into Studio 2 but I don't know how to make it be constrained to the room size. The new camera system is...
  9. T

    GML How To Make Camera Not Reset It Position Upon Entering Another Room

    Hi there. So, i have problem with my camera movement. I want my camera to not reset it position when i re-entering a room. As you can see it below When i enter the second room and go back to the first room, you can see that my camera reset it position for a second. I want my camera to stay in...
  10. E

    Need help on viewports pls help

    so my question is that I want to use this code from gamemaker in my game: view_xview[0] = obj_player.x - (view_wview[0]/2); view_yview[0] = obj_player.y - (view_hview[0]/2); I understand that view_xview changed to view_xport, I did do the change but it did not work. the code I'm using right...
  11. G

    GMS 2 [SOLVED] How to make camera move slowly towards a new target

    Hi. I'm making a cutscene system and I have a script to every action. When the action is done, the script stops executing (I'm not sure if I said that correctly:confused:). But now I need a script that sets a new target to the camera so that the camera starts following the object. But I want it...
  12. D

    GML Camera follow not working for me

    Hey guys, I just sort of got into GML and I'm following shaun spalding's tutorial on making a platformer to get started, it's going well so far I understand how the stuff works and have been able to apply certain things in my game that aren't in the tutorial just based of the logic of it...
  13. Azenris

    GMS 2 Large room, camera & surfaces

    Hi, I'm having a misunderstanding of whats going on and would like to help for some help :D Basically I have a large room. A camera moves around this room. Drawing is done to a surface. That surface is drawn to the application surface. My problem is, anything outside the camera view ( from the...
  14. C

    [Solved] Problems with changing view positions/dimensions

    Hey, I am making a game with a large map in which I want to move the camera with the arrow keys and zoom in and out with the mouse wheel. I have searched online on how to achieve this and usually, the answer would include the variables view_xview[...], view_wview[...] etc. Even the manual makes...
  15. S

    Camera Memory Leak?

    Whenever I restart a room, my game's memory goes up by about 1-2 KB and never goes back down. If I reset it a bunch of times in a row, it'll go way up. After disabling a lot of my code it turns out that it was my camera code causing it, I guess it's not destroying the camera when the room ends...
  16. G

    GMS 2 Camera_create_view update problem

    Hi! In GMS2 i'm trying to create new camera with camera_create_view() and update it's position with camera_set_view_pos(). But for some reason this camera didn't update new position. Here is a code in CREATE //Set Vievport if !view_enabled { view_visible[0] = true; view_enabled = true; }...
  17. S

    [SOLVED] Problem with smooth camera movement

    I am working on a simple way to smoothly move between screens in my game. I want to have an object, that when clicked, will smoothly transition the camera from one side to the other. However, with my current code, it instead jerks the camera to the other side instantly, with no smooth...
  18. D

    Legacy GM Camera System - Help with Maximum Zoom?

    Hi everybody, First off, my question involves a free extension from the marketplace - Multiple-Object Camera by NAL. The extension is essentially just a script. If this is against the rules at all, please let me know and I will remove the post. The extension allows for a Super Smash Bros-style...
  19. G

    How do I offset a camera view so the player is affixed to the left of the screen??

    Hello, I am wondering if there is a way to offset a camera view so when the player moves he/she is afixed to the left side of the screen while moving instead of the center. So far I did a work around where the camera is following an invisible object in front of the player. however I found there...
  20. X

    Legacy GM [SOLVED] Alarm toggling

    I'm making a security camera that pans back and forth on a series of alarms and rotates a triangle for use as a "vision-cone". I'm also letting the player take control of the camera by pressing 'C' and then manually rotating it with the arrow keys. 'C' toggles the state of the "camCon" variable...
Top