view

  1. FoxyOfJungle

    GMS 2.3+ How to return the view number [0...7] that the camera is associated with?

    I for example can return the camera from the view using view_camera[0...7]. But how to return the view the camera is associated with? Something like camera_get_view()... I need to return something from 0 to 7. This code needs to be executed outside the Draw Event. Thanks for listening.
  2. N

    jittering view on my physic car game

    I can't solve the problem of the flickering view, I think it occurs because the 'view' object also assumes "float" positions, however, I tried to add the "round" or "floor" command but this does not solve the problem. code: obj_ view / create event: cam_x=obj_car.x; cam_y=obj_car.y...
  3. TroianZZ

    3D 3D Far clipping plane is hiding objects that are still in the view

    I am using GM 1.4.9999, but it is relatively the same as GMS 2 Game info This is a 2D sidescroller with pseudo-3D code to achieve parallax scrolling and depth based effects. My view_port is twice the size of my view, so it upscales to 1920x1080. (I think this may be part of the problem). I am...
  4. wilmer

    GMS 2.3+ The View follows the character and shakes but not at the same time [SOLVED]

    Greetings to all: Trying to summarize, Through code I make the View follow the player and when he throws a grenade and explodes a shaking effect is created, the problem is that with my code the View has to wait for the shaking effect to end to continue to the character, causing a sudden movement...
  5. S

    view_surface_id question

    Is it possible to set the view_surface_id for a view to a surface, draw only a few sprites to that surface, then set the view_surface_id to another surface and draw everything else there? I can't seem to do this and I'm wondering if you can only set the view_surface_id to one surface per frame...
  6. master2015hp

    GML Best way for big map?

    Hi, i have a really big map in my game, which you can think as of those match 3 map. They're really large and player can scroll around to select a stage which they want to play. If i make a room really really big and create like 500 objects on it, will that ruin the game performance? I am...
  7. YellowAfterlife

    GML Smooth camera movement in pixel-perfect games

    GM Version: GMS1, GMS2 Target Platform: All Download: https://github.com/YAL-GameMaker/pixel-perfect-smooth-camera Links: https://yal.cc/gamemaker-smooth-pixel-perfect-camera/ Summary: This is a mini-tutorial and an explanation of an approach that allows you to have fluid sub-pixel movements...
  8. Kyrieru

    Game Mechanics How do you feel about enemies respawning offscreen NES style?

    I'm referring to how in NES games, enemies would often disappear if they went too far offscreen, and they respawn in their starting location if you leave and come back to that spot. I assume this was just a result of how memory was read, but it had some gameplay implications, -Worst case...
  9. ShadowLenz

    GMS 2 Room Views Help!

    Hello!~ and thanks from now on for helping me with this issue. Has anyone have a video tutorial or knows one where the use of views and his scripts are showned with more detail?
  10. zendraw

    GMS 2 views wrapping

    so im kinda confused with the camera/view functions. what im trying to do is have another view to kinda slide in on the current view and cover it which will also display the other side of the map. basicly: room is 2048 in width. view is 512 in width. view xpos is at 1600. 448 pixels are outside...
  11. Lucas C

    GMS 2.3+ Introducing Xtend - The Setupless, Simplest, most Flexible, most Pixel-Perfect Display Scaler!

    Hi everyone! It's been a while since I last posed around the GMC, but I'm so excited about my latest Marketplace asset I just had to share it with you all. This one has a long history for me, going all the way back to my very first Marketplace asset, originally released in 2014. I created it...
  12. 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...
  13. L

    camera problems (PLEAS HELP)

    when I move the camera, either way, it is stuttering, it's been hours trying to fix it
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. Scienitive

    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.
  19. 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...
  20. 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...
Top