• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

surface

  1. Y

    Legacy GM surface messing up save

    so I have a daynight cycle using surfaces I want to be able to save my game but when I save my game and then load it again everything works fine. but as soon as I close the game then open it and try to load the save it will throw me the notorious error message: Trying to use non-existing...
  2. M

    Android surface memory leak

    just trying to make a simple tracing game. But after creating the room's surface memory usage increases gradually - and I guess as a consequence frame rates decline until after a few minutes the game freezes. Also when checking to see if the surface exists using draw string if I return to...
  3. P

    GameMaker [Solved] Hiding object behind transparent sprite

    What I want to create is a "invisible" sprite that can not be seen, but when specific objects pass beneath it those objects are hidden behind it. Essentially I want to make a "cloak of invisibility" effect. I'm assuming using a surface is how I would go about accomplishing this but I'm still...
  4. G

    GameMaker Surface Draw Help

    Hello, I have a Game Maker Studio 2 IDE v2.1.2.257 Runtime v2.1.2.172. I need help solving/understanding surface draw, newbie programmer here. I have an room that is 1307 width and 5832 Height. An object called obj_view_control with a variable call camera and created a view 720w 1280h. camera...
  5. C

    [Solved] Draw Tiles on Surface

    Hello, I'm trying to draw tiles from a tile map onto a surface to test something and I think the fact that I can't get it to draw properly might be cause for an issue I'm having. Below is a screenshot. The first row comes out fine but then messes up on the second row, onward. I'm sure it's...
  6. Luke Pierson

    Player Lighting Running Off By Itself

    Hello! So I followed a couple tutorials on how to make a sort of torch effect for my player, and the lighting looks cool, but it seems that as soon as I start moving my player, the torchlight moves faster and so it seems to run off by itself and is not attached to where my player is. How can I...
  7. M

    Android Surface image gets glitchy when phone resumes from sleep mode

    Not sure if this is the best place to ask but im having technical issues with my surface. I can run and draw my surface perfectly but whenever my phone resumes after being in sleep mode from during my app session (or even when I leave the app and resume back when multitasking) the surface...
  8. W

    Legacy GM [Horrible] draw_sprite_ext and surfaces problem in android

    Hello, I have a project that creates pages for a book and shows them, it works perfectly fine on windows. This is the problem: On android the scale is wayyyy off on the images for the pages in the book, but somehow the size of the page's sprites are correct. Here's pics to illustrate what...
  9. K

    Question - Code Surface fails on full screen

    I have a fog of war and shroud surface that have always worked wonderfully, until now. I just got Game Maker Studio 2 UWP and everything has been very difficult. This is where I'm stuck.... Problem 1 (Main Issue): When I run a test, it works fine, but when I compile Windows UWP/Local/VM/Windows...
  10. L

    Question - IDE GMS2 Quick freeze when creating a new surface

    Hey folks! I recently imported a project into Game Maker Studio 2, everything was working pretty well, except that the game faces a quick freeze every time I create a new surface (which does not happen in Game Maker Studio 1.4/EA). Does anyone know how to solve this issue?
  11. S

    GameMaker [Help] Pause screen

    Hello. I'm completely new to GM and programming, so I mostly don't know what I am doing. I want to make a pause screen that stops all the sprites and adds a dark overlay. So far I am using instance_deactivate_all(). I tried to implement something with surfaces but it didnt work. I dont know how...
  12. A

    Legacy GM Practical Surface Size Limit

    The manual notes that it's a good practice to limit the size of a surface to the size of your view. However, I have an effect that involves layering several surfaces and I want it to scroll with the view. I could probably figure out a system of creating new surfaces when the view scrolls a...
  13. A

    Legacy GM Making surface pixels smoothly to fade to transparency [SOLVED]

    I'm trying to achieve an effect where a surface gradually fades to complete transparency. I've tried lots of methods to do this, but because of how blending works, especially on surfaces with alphas that aren't 1, I'm having trouble getting complete transparency. (I can't just draw the entire...
  14. A

    GameMaker Black/White Alpha/Clipping Masks to COMBINE Surfaces??

    Hi I've been researching alot about using black and white images as alphas to designate which areas of an entire surface that's drawn, is to be shown, AND the EXACT OPPOSITE for another surface to be drawn. meaning... my current example: for one scene, I am using a gaussian blur shader to...
  15. M

    Windows Getting buffer_set_surface to work.

    There have been several people who manage to get buffer_set_surface to work but many others could not. I've been doing some research to find out what might be the cause and it could be hardware dependent. I also found a little information that it might be the DirectX version on the computer...
  16. R

    Legacy GM Line of sight / Triangular surface

    Hi, I've got a triangle, and I want to darken the screen completely excepted for this triangle : so the only thing I can see left is what's inside of it. The triangle is not a sprite, but three separate points. I figured out I could draw black primitives all over the zones that are not inside...
  17. Nathan Laing

    Legacy GM More texture pages? sprite_create_from_surface

    Hello all, With the use of sprite_create_from_surface, is an entirely new texture page created on the fly to store the newly created sprite? And if so, if sprite_create_from_surface is used multiple times, are multiple new texture pages created, or, are the newly created sprites added to the...
  18. kamiyasi

    GML Drawing background tiles to a surface?

    Hi. In my game I have background tiles that I use for walls. They look like this. I also have a surface that draws shadows for objects such as the player, enemies, and props. What I would like to do is to also draw shadows for walls to this surface. The way I think I would like to do this is...
  19. B

    Legacy GM Capturing the application surface incorrectly.

    Hi guys, I am using GMS v1.4.1772. I am trying to capture the application surface with a water object, then use that surface with a shader to get a ripple effect. I am able to capture the surface just fine. The problem is when the view changes, the water surface becomes zoomed in/out. I am...
  20. T

    GameMaker Making sure the GUI layer scales properly?

    I'm working on a project and I've noticed that if I change the size of the window, none of my GUI elements are in their proper place. I'm not sure if I fully understand how the GUI layer works, so I don't know where to begin to derive some sort of scaling formula. Is there a function to solve...
Top