surface

  1. Pyxus

    GMS 2 [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...
  2. G

    GMS 2 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...
  3. 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...
  4. 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...
  5. Misu

    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...
  6. 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...
  7. 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...
  8. lukbebalduke

    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?
  9. S

    GMS 2 [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...
  10. 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...
  11. 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...
  12. A

    GMS 2 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...
  13. Misu

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

    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...
  15. 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...
  16. 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...
  17. 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...
  18. T

    GMS 2 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...
  19. C

    Legacy GM [SOLVED] surface_copy + surface_draw only draws a blank surface

    Hello! So, I tried today to make a little pause system with surfaces. The general idea is that if the game is paused, the application surface would be copied into a surface I created using the surface_copy function, and after that, I deactivate all instances. except my controller instance (where...
  20. Roa

    GMS 2 unable to render 2nd perspective view

    kinda hit a strange road block in GMS2 today. I'm trying to use a depth buffer, but in order to get that far, I need another camera and perspective into the world. For some reason, the second camera is always static and flat unless I place it in the same object as the first rendered perspective...
Top