surface

  1. 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...
  2. Ponzalskov

    [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...
  3. David Lorenz

    [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...
  4. 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...
  5. FoxyOfJungle

    Alpha UTIKI - UI Editor (and more!) for GameMaker [Last Update: 05/04/2022 -- mm/dd/yy]

    PRESENTATION: Hello, welcome to the Utiki Editor "work in progress" devlog topic. "Utiki Editor" is a software that aims to streamline the process of creating games, using a Drag and Drop interface. This is a WYSIWYG (What You See Is What You Get). CURRENT STATUS: Hiatus. | Update: (March...
  6. M

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

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

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

    GameMaker 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)...
  10. 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...
  11. 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 (...
  12. A

    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...
  13. 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)...
  14. 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)...
  15. Z

    GameMaker 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...
  16. Z

    GameMaker 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...
  17. BELLER Lab

    GameMaker Android Devices shader surface_copy problem

    Hi ! I'm trying to use a black hole shader that I found online (Made by flyingsaucerinvasion) on Android Device, the shader code is pretty simple (I just modified it to do a simple Alpha Transition) but the problem come from the Draw Event of the Black Hole : if(!surface_exists(surf)) surf =...
  18. H

    Struggling with "Surfaces" . ( GONNA FREAK OUT )

    I was working on a "digital design software" project on GMS2 and it requires a surface system as a matter of course but after a few failure in this project i've decided to create a brand new document and try learning how "Surfaces" actually work . i have a default room and an object in this new...
  19. JeanSwamp

    Unusual use of app surface GMS2

    Hello Game Makers, I am trying to do something with surfaces and I am not entirely sure how to make it work, specially due to distorsion problems. Basically I need to capture the whole screen into a surface, resize it and flip it a bit so the surface becomes displayed like such (Green being...
  20. mbeytekin

    SOLVED Sending a surface or buffer to a C++ DLL and getting processed image from it to a surface or buffer back

    I'm trying to send a surface to dll and process it in DLL, and after this get this processed image back. I tried send surface as buffer (argument as double) but it's not working. My mean goal is using opencv library in C++. Anyone can help please ?
Top