surface

  1. M

    SOLVED Drawing a Shader Meant for the Whole Screen on a Smaller Surface

    I'm 4 days into making my game and I want a glitch effect for when enemies are damaged, I found bktGlitch which is a really, really good shader from what I can tell. It is meant for use on the application_surface. However, I'd love to use it on my o_simpleEnemy. So I figured out how to make my...
  2. A

    SOLVED surfaces not working

    Hi! so i wanted to mess around with surfaces for an UI and it dint work it dint draw the surfaces i tried following a tutorial that worked right before but now it just doenst work it doesnt draw the surface please help. CODE: if surface_exists(surf){ surface_set_target(surf)...
  3. ikonhero

    SOLVED Problem with pause / freeze using surface; image appears stretched.

    Hi, I'm trying to make my game freeze / pause by deactivating all instances from a seperate pause instance. Before deactivating all instances I make a copy of the application surface. After all instances are deactivated I draw this surface in the draw event of the oPause instance. However, the...
  4. TheCheeseMaster

    SOLVED Surface Drawing Stuttering

    Hi there, Basically what I'm trying to achieve is this: -have "cloud shadows" moving across the screen -draw the cloud shadows with an alpha I can control (all with the same value at any given time) -have the cloud shadows create a uniform shadow colour when overlapping, rather than having two...
  5. Forestherd

    GMS 2.3+ surface_set_target() not working in HTML5

    Hello! I am currently trying to apply a water shader over the entirety of my game view. Here's what its supposed to look like (Windows). Water is rendered on the bottom half of the screen with a slight distortion effect: However, this effect does not render on the HTML5 export. Here's what it...
  6. H

    SOLVED Question about Draw Pipeline (I think)

    In a case like this: // in Draw GUI surface_set_target ( blur_surface ) ; shader_set ( shd_blur ) ; draw_surface_stretched ( application_surface , 0 , 0 , blur_surface_width , blur_surface_height ) ; // where blur surface is smaller does the shader apply to the app_surface before or after it's...
  7. 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...
  8. jf_knight

    Shaders Three-layer surface shader stack

    I'm implementing three surfaces and applying a shader to each. However, only the first and last shader seems to appear, the second does not. They are order-specific. Am I doing my shader stack wrong? obj_target DRAW event if !surface_exists(main_surface) { main_surface =...
  9. DonMaklesso

    [SOLVED] Sending surface over network

    Hi, I've been trying to send an application_surface in a buffer (I'm using a server-client system) and displaying it in the client's game so that he would "see what the server sees" but this doesn't seem to work. It doesn't crash or anything just nothing happens. Here's the code: // Server -...
  10. Pelican Police

    Legacy GM Is it possible to edit game maker texture pages like a surface?

    For example, if you wanted to tint/change the game environment, you could redraw all the sprites in their new form directly to the texture page, rather than doing it in real time every step using a shader or even image blend. I'm sure this could lead to other problems, similar to the problems...
  11. C

    Pixel Perfect and "Pixel Snapped" GUI

    Hi guys, I need to make my GUI layer "pixel-perfect", and found no clue around here.. The blue cube is being drawn in the "Draw GUI" event The white cube is being drawn in the "Draw" event //I want the blue cube to behavior like the white one while rotating. //But found nothing like this for...
  12. Starfag

    Weird contour around sprites when surface is drawn (OpenGL only?)

    Hi! I'm using surfaces to copy the screen content before deactivating all other instances (like a pause screen). When the surface is drawn, it presents a weird contour around objects (see image). You can see that there is a gray contour around the door, the wardrobe, the mat and even the corner...
  13. Ponzalskov

    GMS 2.3+ [SOLVED] Help with Sprites not drawing on super simple test project.

    As the title reads, its a project with 1 sprite (16x16) 1 object (with a Draw Event with 6 lines of code 1 room (with an Instances layer and Background layer) Any sprite is not showing, neither tiles (i've tried before but simplified to the minimum to show the basic and main problem). No error...
  14. David Lorenz

    GMS 2.3+ [SOLVED] Apply shader to a single tile layer as a whole

    Hello everyone! I've been working with Game Maker for almost 2 years now, but I've barely touched shaders and surfaces. Lately I've started playing with both and found myself stuck very often. :/ I want to use a shader only on one tile layer, but I noticed that with the layer_shader and...
  15. B

    Using Cameras with Surfaces / Drawing a tilted surface

    Hi all. Does anyone know if it is possible to apply a camera to a particular surface only? My actual objective is to draw a surface tilted on it's x axis to make it look 3D and give it a sense of perspective. The attached image shows an example of the sort of thing I'm trying to achieve, with...
  16. FoxyOfJungle

    Alpha UTIKI - UI Editor for Game Maker Studio 2 (Contains DEMO) [Alpha, v0.1.0.0 - 29/04/2021]

    Presentation: Hello, welcome to the Utiki - UI Editor working in progress devlog topic. "Utiki - UI Editor" is a software that aims to streamline the process of creating interfaces for games, using a Drag and Drop interface. This is a WYSIWYG (What You See Is What You Get). Current...
  17. M

    GMS 2 draw half transparent overlapping sprites to surface [SOLVED]

    Hi guys I spent hours on this problem without any solution. So hopefully you can help me. I d'like that after an explosion in my game, the smoke-particles remain on a surface, which is drawn over the entire screen. This should look like the area where the explosion was, is burned. So my smoke...
  18. Strakee

    Drawing on specific layer only

    Right now I have a blood drawing mechanic that draws on a simple area surface. It works like this: An object is created and as it flies it draws itself repeatedly on the surface like a brush. The goal is to make it not draw itself on the background. (The blue part in the image is a background...
  19. WAVINDY

    Multiple Surfaces Question, and Possible Optimization? (GMS 1.4)

    Hey there GMC! I am back to game making after a long hiatus, and I am into the development of a survival exploring game that utilizes a top-down perspective, like that of LOZ, but a little more modern. The problem I'm running into that I can't seem to wrap my head around, or find any info to...
  20. mbeytekin

    GMS 2 gif_add_surface delay time parameter doesn't affect.

    I can't change delay time in gif_add_surface() function. Everytime it exports with same FPS. I'm trying to export sequence images which are at 23.98 fps in real. I do this in step event with predefined 15 surfaces for example. gifFPS=23.98; gif_add_surface(gifbuf,gifsurface[frm],1/gifFPS*100)...
Top