surface

  1. 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 =...
  2. 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 -...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. FoxyOfJungle

    Alpha UTIKI - UI Editor for Game Maker Studio (Contains DEMO) [Alpha, v0.1.0.0 - 23/01/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...
  10. 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...
  11. 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...
  12. 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...
  13. 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)...
  14. Papa Doge

    SOLVED Simple light effect

    I'm attempting to add a simple light effect to my game where certain objects have a light radius around them when the world is dark. I have the surface drawing correctly with the dark overlay but my light punch outs don't seem to be working. I've create an object called obj_lighting_render to...
  15. M. Idrees

    SOLVED Save Multiple Surfaces With Different Names At Once ???

    Hi, I want to save multiple surfaces at once in a loop but it doesn't working or I am doing it in a wrong way. My code for saving the surfaces if ( SAVE ){ location = get_save_filename("PNG Sequence|*.png", "filename" ); // eg location = "\temp\images\ball.png" len = 0; if (...
  16. Adry

    SOLVED Resizing Surface Lag

    Hi all! I've been searching extensively but can't find an answer to this. I have a full screen persistent obj controller I know is causing my game to lag. I should also note that I am using vector graphics. I narrowed the lag down to this line: surface_resize(application_surface...
  17. M. Idrees

    Windows Draw Surface Stretched On Another Surface ???

    Hi, How to draw a surface with stretched size on another surface that is currently targeted ? For example, if surface_exists( surf1 ){ surface_set_target(surf1); // draw something // draw the other surface if surface_exists(surf2)...
  18. Tizzio

    Windows [Bug Report] Sprite "auto clipped" when it should be visible

    Hello, This issue it's not that easy to explain but i'll try to be as clear as possible. It's important to mention that this bug is present only in GMS2+ Let's start with this code and try to break it down in smaller parts: surface_set_target(surf); draw_clear(c_white)...
  19. zendraw

    GMS 2 draw surface pos

    i noticed there is no draw_surface_pos function? so my question is can i somehow make that happen? basicly i want to draw a surface with the top end squished in creating the illusion of 3d. there is the option of making the surface a sprite, but i will be drawing on the surface every frame, so...
  20. zendraw

    GMS 2 draw surface over sprite

    i want to draw a surface over a sprite in a way that the sprite`s alphas are applied to the surface so the surface is like cut based on the sprite. i have some code from before that doesnt work now for some reason. draw_self(); if (surface_exists(surf)) { draw_surface_ext(surf...
Top