• 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!


  1. 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...
  2. 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...
  3. 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...
  4. 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?
  5. 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...
  6. 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...
  7. 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...
  8. L

    camera problems (PLEAS HELP)

    when I move the camera, either way, it is stuttering, it's been hours trying to fix it
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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.
  14. 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...
  15. 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...
  16. 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...
  17. Palocles

    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...
  18. 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...
  19. 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...
  20. X

    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...