views

  1. M

    Legacy GM Problem with rounding and views

    So I'm trying to make a platformer game going off of Shaun Spalding's platformer tutorial. At first I was having problems with the view following player. It wasn't major, but the view would stutter a little bit and sometimes the player wouldn't quite touch the ground. So I looked around and...
  2. M

    Legacy GM Switching between views turns the screen blank after a small but random nr. of switches

    I'm trying to make a room where you can switch part of it (view 0) to another view that's about 2/3 of the port size (view 1). Kind of like those menus where you have a character avatar, say, on the left side of the screen, and then you can switch the windows to the right of it - for example one...
  3. Heavybrush

    double parallax check

    I'm doing a parallax background, using an object with a sprite that must follow the view because I generate all the rooms procedurally and I don't know how much they are big, so I need: the parallax start at 0 of both (room and view) parallax scroll from 0 to room_width BUT parallax can go...
  4. L

    2 views, draw_text in one and hide in another

    Alright so I have 2 views in my game, making a splitscreen effect. One view follows player one and the other follows player two. I want them to have their own kill counter at the bottom right of their view with draw_text, However since both views move in the same room, the problem I come across...
  5. C

    Pixel Art Fuzzy In Game

    i want to have a closeup of my 450x450 ship. I would prefer to have a closer up view of just the character running around the ship rather than viewing the whole ship ftl style. Either way when i set the view size and port size and launch the game the ship looks very fuzzy and low res. Is there a...
  6. S

    Legacy GM Problems with view scaling

    I've looked in a handful of places for how to scale pixel art perfectly a la Hyper Light Drifter, as in, while retaining a low resolution, scaling the pixels up without inconsistent pixel widths, and quantizing the use of pixels on screen so that there are no in-between pixel movements. Just...
  7. G

    Continious Room - Views Problem

    Hello and ty for trying to help me already, Making a certain (side scrolling) room in my 2d game, was according to me not very difficult. It would be a room which simply continued at the beginning when you reached the end of a room (x = room_width). It should also work vise versa, when you...
  8. S

    Why aren't my viewports working?

    First of all, this is my first post here, so I apologize if I've posted in the wrong board or in the wrong way. I'm pretty new to GML, though I've got some experience in C++, and I'm finding it frustrating trying to find where I'm going wrong. If I start with views enabled, and have all my...
  9. P

    Legacy GM Keeping the aspect ratio when scaling the view to fit all players

    I need to keep all my players in the view and want to scale my view down so that everyone is shown. (Yes, Super Smash Bros. style) This is how far I've come. // The span-functions gets the distance in pixels between the min and the max x-values of the players var span_x = camera_get_span_x()...
  10. L

    Legacy GM How to find the center of a view

    I'm surprised myself I don't how to do this exactly. Let's say I have a view following the player, and when I press the Z key, I want something to pop up in the exact middle of the screen. Now if the view is a 640x480, of course I can just do, instance_create( view_xview+320...
  11. Edu Shola

    Legacy GM how to make view follow a sprite

    Hello guys :), I created a level select room that's is 720 *2560 and I set the view to only show 720 *1280.the room is filled with numbered objects for different levels, and when a new level is unlocked the sprite changes to spr_indicator. I need the view to follow the spr_indicator so it...
  12. W

    Game Maker (GML) Split Screen Script - Split Down Center

    I've written a script to split the screen which I'll include below, the problem with the script is it does not split the screen according to how many players are present. The screen is meant to always split down the middle but instead splits the screen with the center point somewhere around the...
  13. NeoShade

    Legacy GM View not quite filling window

    Hi guys, I'm playing around with window sizing and positioning and views as the first steps in a project, and I thought that I had the whole thing figured out, until I noticed that there's a thin black line at the bottom of my window where the view isn't quite filling it up. Here's my game...
  14. C

    View changing not working

    I feel like such an idiot, but I don't know what to do. Someone please help. So I set up an object that's supposed to change between views when the space bar is pressed. I created a step event and put in an execute code action. After digging through a few pages of the manual, I created this...
  15. K

    Legacy GM Question about Aspect Ratio while zooming

    Hello, I'm currently making a game where the view object stays within two players. When players get further apart I made it so the camera zooms. But the view isn't keeping it's aspect ratio. Could anyone please help me out? x = (obj_player.x + obj_player2.x) / 2; y = (obj_player.y +...
  16. S

    Drawing background to the screen 1:1 (ignoring views) possible?

    Hi all, I have a tiled background that I want to draw 1:1 to the screen itself. At the moment I update the background tiles' x and y co-ordinates to the view own co-ordinates to make the background look static. The problem is there's some glitching sometimes when the background doesn't...
  17. S

    Legacy GM Text Boxes Relative to Views Help (SOLVED)

    EDIT: I could try and provide a video of it if that would help. EDIT2: How do I format code in this forum? Sorry for bugging you guys... Also I'm using (according to the title of the app) - GameMaker: Studio Standard Edition (v1.4.1757). Also the code is in the GML. But I'm doing some text...
  18. A

    Windows Drag And Zoom

    I am using gamemaker to create a floorplan system. I have developed a large amount of it myself but I have bumped into an issue which i am unable to solve. What i am trying to do is to have the functionality of where the user can zoom into the plan and drag the plan around to see different...
Top