surfaces

  1. Azenris

    GMS 2 surface_free

    Should surface_free still be called even if the surface_exists returns false. Like, is there internal meta data that GM uses and still needs freeing? if ( surface_exists( surface ) ) surface_free( surface ); or just always delete surface_free( surface );
  2. N

    GMS 2 (Surfaces) Lighting for splitscreen

    Hi this is my first forum post. So, I apologize in advance. I need help with figuring out, how to.. uh, make lights.. be lights? I want to make lighting, but only on where both screens see. (It’s splitscreen, two players) I didn’t write this code, it’s from some tutorial somewhere. I just want...
  3. Z

    Minimize/unminize game gives lag...

    Hi everyone. I've been using shaders and surfaces now for a while to come up with all sorts of cool effects. Weather, lighting, fog, day/night cycles,.... However I've run across something that I'm sure a lot of people have already encountered: Lag, specifically lag after I minimize the game...
  4. Weastøne Entertainment

    GMS 2 Creating surfaces on step

    Hello there!, I have a pause system where I copy the application surface whenever the player presses the pause button; I've read that surfaces should not be created outside the draw event; how could I possible achieve this with the creation of my paused surface in the draw event? I though of...
  5. M

    Shaders Shaders and Surfaces. Matching wrong colors?

    I am using the below shader to try and put transparency on the shadows in my room. There are two main problems with it that I cannot figure out. So what I am doing is drawing all instances to one surface, then drawing the light mask on another. Then I draw the light mask on top of the...
  6. X

    Multiple viewports with surfaces/deferred rendering problem

    Hi, I've implemented deferred lighting by drawing on 3 surfaces for diffuse, normals and specular and then merging them with a shader on the application surface.. It's all good until I got to multiple views (for local multiplayer.) This used to work fine before but now I cannot get it to work...
  7. BlueHarrier

    Alpha Feather Engine 3D

    I'm working on a 3D engine for my future project, still working on graphic management. [Updates] +Added spotlights, they don't create shadows. +Upgraded the color shadow and translucid renders quality. /Changed the color of the background, nothing important, but seems more beautiful for...
  8. S

    Legacy GM Surface_save to a sub directory? (SOLVED)

    I have been looking for a while now, and I cant seem to find a way to save surfaces to, or even move a saved surface file to a sub-directory I created. Am I missing something? or the folder creation only for text files? The reason I want this is because upon exiting a room in my current game...
  9. P

    GML SOLVED: Drawing A Surface Onto Another Surface From Another Object

    Hi all, I know it's possible to create a surface in an object and then use the with() function to draw multiple other objects onto that surface whilst it's targeted, and have managed to use this successfully. However, in an attempt to optimise my draw pipeline I was hoping I could do the...
  10. Stonesword games

    GMS 2 Destructible terrain keeps shrinking

    My destructible terrain keeps shrinking to 1/4 its size and goes to the bottom left of where it was originally. Note: I'm a novice and got this code from a tutorial :D Heres the code Create event: HIT = false damage_x = 0; damage_y = 0; Leftclick event: var _mx = mouse_x - x; var _my =...
  11. kingsushi001

    GMS 2 [Solved] Problem with surface_getpixel(surface_id, x, y)

    Hi everyone So I'm trying to create a simple colour picker. I'm using surface_getpixel(surface_id, x, y) to get the pixel colour in the hue strip. This is my code: col = surface_getpixel(application_surface,x,y); And this is my error: ___________________________________________...
  12. Sozidar

    GMS 2 How to draw particles not affected by the surfaces above them?

    I know its possible to just draw particle system above the lighting surfaces, but I really need to preserve depth order. Here's a screenshot of current situation: Particles on hand and sword are too dim, but the depth is ok. And here's how they look when being drawn above everything: Bright and...
  13. MIchael PS

    Legacy GM Surface depth

    So hello, I want to draw a surface under certain objects. I tried changing the depth of the object that draws the surface, but it doesn't work... Any suggestions? Thanks a lot!
  14. Juju

    Free Image Manipulaton With Textured Circles

    Source: https://github.com/JujuAdams/rotary-slices Quick example that shows off how to make textured circles, as well as a "ping pong" method to use two surfaces to stack effects on top of each other.
  15. C

    GMS 2 Seamlessly Looping Rooms by using Views and Surfaces?

    I've been trying to get a seamlessly looping room working in game maker studio 2. If you ever played Yume Nikki or used RPG Maker its kinda like the room looping in that. I'm a little new to using multiple views and haven't used surfaces before so I'm running into some trouble. My current plan...
  16. Zack

    GMS 2 Sprite-Based Level Generation (video [15:00] + text versions)

    GM Version: GameMaker Studio 2 Target Platform: All Download: zackbanack.com Links: Video Link Summary: You may know how to design levels in the YoYo Games’ GameMaker Studio Room Editor. But, what about in its Sprite Editor? This Step Event tutorial will show you an artsy, unconventional...
  17. FlashyAlpaca

    Game Mechanics Drawing Layer to Surface Smaller than Room Size

    Ok, so here's the rundown: I'm trying to draw only the currently visible part of a tile layer to a surface. This is because I'm implementing a system in the game where a Wall tile section will fade out when the player is over top of it, giving a simulated depth to the layer. I've managed to do...
  18. S

    Create_Sprite_From_Surface

    Hello, I'm my past free time I have been making a game using Gamemaker Studio 1 and I would like to add an pause function. Because of the fact that I have a lot of different objects which are all inherently different I have searched for an easy solution where I do not have to add a lot of code...
  19. P

    GMS 2 (SOLVED) Weird Graphical Issue Around Surface Edges

    Hello all, I'm using surfaces to apply shaders in localised areas. Everything is working and great now, except I have this issue that I cannot figure out and google hasn't helped. Along the edges of the surfaces, it seems to show pixels from another area of the screen. For example, in the...
  20. D

    Help with Surfaces

    Hey guys, I'm an experience gm user since 6.1, and haven't touched gm in a few years. i having some dramas with surfaces. what I'm attempting to achieve is use a 'bloom' sprite to light up another sprite on the surface, and crop it so that it just leaves the 'bloomed' part of the image, which...
Top