surface

  1. 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...
  2. 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...
  3. 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)...
  4. 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...
  5. 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 (...
  6. 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...
  7. 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)...
  8. 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)...
  9. 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...
  10. 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...
  11. BELLER Lab

    GMS 2 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 =...
  12. 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...
  13. 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...
  14. 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 ?
  15. William Garrison

    GMS 2 Lights Cutting into eachother

    I just followed a tutorial on lights and finally got one that works with my system and current GMS. Great BYT for some reason my lights are cutting into each other. The gentleman in the video doesn't seem to have that issue as far as I can tell. I have double checked the code and cant find...
  16. witches

    SOLVED Dynamic Outline Shader from Surface

    Hey all. So I'm working on an outline method where I sample a surface texture of a couple of sprites and send that through a basic outline shader and basically clear and repeat. So far it works well, but there's a tiny outline of my sprites being created even when they're both being drawn onto...
  17. M

    Drawn shadows overlapping issue

    So in my top-down viewed game, I have cloud shadows (transparent sprites) that occasionally fly over the levels. They overlap tho, causing the overlapping section to go dark, and it looks bad. I tried learning to use Surfaces to overcome this issue..... but honestly i dont have much clue how to...
  18. Slothagami

    SOLVED Custom Shadow Color?

    I have been battling with the shadows in my games for quite a while now and can't seem to do this myself, I want to have shadows for each object, in the shape of their object, and using a different color based on the color behind the shadow (to fit with the color palette) I am very new to...
  19. MeltingCat

    GMS 2 Understanding the error 'Invalid surface dimensions'

    I have gotten this error 'Invalid surface dimensions' after using surface_resize in a room start event. The error occurs only sometimes - I can't quite figure out a pattern behind it and would like to know more what invalid surface dimensions might be. A google search brings nothing but one...
  20. JeanSwamp

    Apply Shader to everything within a sprite_width && sprite_height area

    Hello, I am trying to make some underwater effect in a sidescrolling game. Applying a fullscreen shader to create an underwater effect is pretty easy, but when you have in the same screen both water and terrain, this might get tricky. Basically I need to apply the shader to everything that the...
Top