view

  1. KingRegicon

    Simple Viewport Setup- Can I Toggle Tall and Wide?

    Hello, everyone! I have been practicing GML for a few weeks now, and I'm really loving the problem-solving aspect of programming. The manual, online tutorials and GML forum posts have helped me through every problem I've faced so far, but now I must write my own post in desperation. The Setup...
  2. L

    camera problems (PLEAS HELP)

    when I move the camera, either way, it is stuttering, it's been hours trying to fix it
  3. V

    Legacy GM Snapping to grid after panning with view enabled

    Hello, After a long time I wanted to start Game Maker programming again. However, currently, I have a problem with combining view, panning and drag & drop in GML. The project can be found here. When you start it, you will see some buttons on the right. Without panning, it is possible to drag...
  4. I

    Legacy GM How to make changes in another room

    Hello, everyone. I'm trying to change things by changing between rooms. Basically, I have my "obj_door" that simply does "room_goto()", but I need this to move objects or trigger events. What I have thought is to add "with (obj_player)" after changing the room, but I realised that it doesn't...
  5. LanderMiskolczi

    GMS 2 Camera_get_view_x / y only returning 0

    So i've been trying to get my buttons to follow the camera, and to do this, I need to get the camera x and y, but using the object it makes it lag behind. But when I use this function it only ever returns me a 0. Here's a gif to show you what I mean. If you look to the left, that is printing...
  6. C

    SOLVED Player look at the top / move the camera

    I am a novice with GameMaker. I search to coding a smooth moving of the camera, to represent the view of the player. When the player press "up" the camera move to top until a limit. When he release "up" the camera comeback to initial position. On the code that I wrote the while condition crash...
  7. S

    How to curve the camera?

    Hi guys I want to curve the camera but I don't know how to do it. Can you help me? What I mean by curving camera is : in the image the "HOT" text is curved like its in a old tv screen. That's the effect I want to make.
  8. F

    Windows Resource Load Failures won't go away

    I recently started using GameMaker studio 2 a few weeks ago and was starting to follow a platformer tutorial, as all newcomers do, but one day I opened up my project to a list of failed "view" resources. After closing the warning, I ran the game and everything worked fine. The main issue is the...
  9. Fluury

    Get size of "scaled" view / How to achieve pixel perfect scaling with free window scaling

    Heya. Following Issue: Similar to Nuclear Throne I'd like to allow the player to freely resize the window to their liking while keeping the area within the window the same - this means we get Black Bars. These are fine, what however isn't fine is the game's sprites getting all crusty...
  10. T

    How can I limit a space in my room where the view can move? / fixating a view in a specific spot on

    Hello everyone! I am making a mobile platform fighter (using GMS 1.4) that looks like this: So, the idea is to have a big square in the center where the action takes place and on the top and bottom we have each player’s controller. I made a prototype and got a few feedbacks from my friends...
  11. P

    View/camera preceding player

    I’ve been following Shaun’s tutorials and have my camera following behind the players character sprite. How would I change that code to get the camera to be x pixels in front of the player sprite? I’d like to make the camera be 10 pixels in front when the character walks and 25 when they run...
  12. L

    GMS 2 [SOLVED] Camera moved by pushing the screen's edge with mouse

    There are many great tutorials for an easy camera setup (for example: ), but in these the camera follows either the obj_player or the mouse, while I need a mostly static view that is only move if the mouse is at or near one of the screen edges or a WASD buttons pressed (like in most top-down...
  13. Silver_Mantis

    Windows Multiple Root Views Error is Seriously a Killer Issue.

    I've had this happen several times and I have just had it with Game Maker Studio. I cannot believe my files just keep getting corrupted over and over again. This is probably the 6th time. And this time even my back up copy wont load. So it looks like I have to import everything from scratch into...
  14. xery555

    Only keeping the view inside the room horizontally

    Hi! I have a problem with the view function in Game Maker. I want the view to not go outside the room horizontally, but ignore the room height. It should follow the player. So I have this code: view_xview[0] = x - (view_wview[0]/2); view_yview[0] = y - (view_hview[0]/2); But that makes the...
  15. ruwcom

    Legacy GM [SOLVED] An object checks if another object is in the view

    So I have a wall that prevents the player to move forward until there are no enemies on the view, I though the easiest way was to check just that and then destroy itself, but the code needs to run in the wall object, how can I do that? collisions don't seem to work. Also It can't be...
  16. 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...
  17. Jscoombs

    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...
  18. 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)...
  19. P

    Windows View not following object because of high speed

    Hello guys, so I have this 2d top down starship game and the thing is everything works fine for now but I use this code In the step event to follow the player because the player ship is almost always outside the room borders. The only problem is the player object often exceeds speeds of up to...
  20. 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...
Top