surfaces

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

    GMS 2 Text drawing to surface weirdly

    I'm experimenting with drawing text to surfaces for the sake of optimization, but the text drawn to my surfaces appear weird. The characters are very thin with some letters even appearing to be missing small segments. I am drawing the text using a for loop; I've also noticed that looping the...
  3. J

    Edit sprite’s alpha per-camera view?

    Hi all, I’m making my first split-screen couch multiplayer game; I’m currently looking to have some trees which obscure the players’ visions of characters go transparent *only* for the relevant pkayer’s camera. So, for example: Player 1 views the game through a viewport that takes up the top...
  4. WinuX

    GMS 2 Lightning System doesn't work since runtime 2.2.x

    Hello everyone My lightning system seems to stop working when I'm above runtime 2.1.5. ///////////////////// CREATE /////////////////// lightsurface = noone; darknesscol[0] = c_black; darknesscol[1] = c_black; darknesscol[2] = c_black; darknesscol[3] = c_black; ///////////////////// STEP...
  5. L

    GMS 2 possible to draw game on two monitors?

    Hello. I have two monitors, and I want to draw my game to both of them, but I want to control which elements show up on monitor 1 or 2. so for example, i want all the hud elements to be on monitor 1, and the actual game on monitor 2. I know how to use surfaces. but I don't know if im...
  6. L

    GML drawing live video to surface? ( need help from CS wizards )

    Hello everybody im currently working on a project and want to know if it is somehow possible to write some kind of dll that will allow gms2 to receive some kind of video input as a surface. perhaps im too ignorant about this subject and im asking something next to impossible. my current...
  7. kamiyasi

    Legacy GM How to clear a surface stored in an array?

    Hi there. I'm using a 1D array to store the surfaces in my game, like this. var i; for (i=0; i<4; i++) { characterSurface = surface_create(640,1080); } It works fine when I draw to them and draw the surfaces to the scene in game, however, when I try to clear the surfaces in the room_end...
  8. P

    Question - Code Mask Backgrounds - showing through a mask the background behind

    Hello, I've being trying to create a way to make a certain area of my level to show the background bellow. At the moment I have two layer of background, one with color (behind) and one without (front). my objective is to create a mask on the front background so i could see the behind background...
  9. Coded Games

    GMS 2 Surfaces not being recreated after freed.

    So in my game, cards are made from two surfaces. A front surface which contains the card text, art, etc and a second back surface which just draws the black background of the card. Sometimes these surfaces need to be changed, for example when a card is fused, so I free both surfaces and...
  10. jujubs

    Confused by surfaces and shaders

    So I'm making a game designed to look like it (kinda) runs on the Game Boy. So far, I was making it in black, white, dark grey and light grey, but I tried a shader to turn those colors into shades of green and it looked amazing (or, at least, people I've showed it to seem to think so). The...
  11. R

    Legacy GM How to make a custom surface behave similarly to the application_surface

    Hi all! I was wondering if anyone knew how to setup a surface so that it behaves in a way similar to the default application_surface gamemaker uses. In particular, I need my surface to 'clear' so that there are no residual graphics from any draw events. I have tried using...
  12. jf_knight

    Legacy GM Deleting texture pages

    I trying to implement some shockwave effects into my project (https://marketplace.yoyogames.com/assets/5696/shockwave) I've noticed something when running the example in GM:S while the task manager runs in the background: The more shockwaves I make, the higher the RAM usage of the example...
  13. C

    Legacy GM Scrolling text / objects out of area

    I am trying to do something very simple, but can't seem to grasp how to do it. I have made a rectangle and inside it couple objects. What I would like them to do, is to disappear when I scroll them outside of the rectangle and reappear when I scroll them back in. So far I have tried using...
  14. Strobosaur

    Blood surface only drawing on top of ground tiles? [SOLVED]

    I bet this has been asked before, but i was unable to find a good answer after some searching, so here goes: Im making a top down game, and i use a ds_grid for the map structure, then i map collidable tiles to another ds_grid and use that as a collision grid. Im also drawing all blood to a...
  15. N

    Can't see what I'm drawing on a surface

    So I have a surface in my game and want to draw multiple things on it, but I can't see whatever I try to draw on it, so I made a new object and made a simple surface test and I still can't see what I'm trying to draw. Breakdown of the code: --Create-- surf = no one; --Draw--...
  16. A

    Windows Moving to GM2

    Hi guys! I have been working on a big project I started back in the days of GM 8. With each new version of Game Maker I have put in the work to update the game and keep it current with the software, but I was hesitant to make the jump to GM 2 from GM 1.4 knowing a lot had changed, and the game...
  17. S

    [SOLVED] Subtract Blend Mode

    I'm working on an improved lighting system in my game. Footage: https://gph.is/2LcYwii It looks good, I think, but I want a gradient circle. I used draw_circle_colour with both black and white, and I set the blend mode to subtract, thinking this would subtract a gradient circle from the black...
  18. jf_knight

    Legacy GM Layers to surface substitution [solved]

    I bought a project off the marketplace and I'm translating the code from GM2 to Game maker 1.4. I realized that GM2 one can manipulate layers much easier, however in GM1.4 you cannot. Functions for surfaces are available. Would it be possible to substitute the uses of surfaces instead of layers...
  19. D

    View scaling for all devices

    Hi guys, i've recently read this guide (https://www.yoyogames.com/blog/66/scaling-for-devices-part-2-the-game-view) to scale my game view for evert device. However, i'm still pretty confused under many aspects :bash: The guide writes this code for full scaling: var base_w = 1024; var base_h =...
  20. hth

    Not quite understanding views and/or surfaces.

    Hi. I'm having a bit of an issue understanding how views, cameras and surfaces work together. Again. What works so far: I have a view set up and a camera associated with it. This camera follows different objects at different times, all the while I draw things like trajectories on the...
Top