surfaces

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

    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--...
  3. 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...
  4. 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...
  5. 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...
  6. 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 =...
  7. 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...
  8. B

    Drawing to surfaces smears on movement

    I am trying to wrap my head around surfaces, sometimes when I am making a cutscene it works, but then it suddenly starts breaking and I get something like this https://imgur.com/a/l7oGfks It just draws every frame and doesn't refresh it. It creates a smear when I am moving. Is this supposed...
  9. Ggd07

    GMS 2 [SOLVED] Using surfaces with alpha correctly

    Hello, I have been trying to fix this for weeks now, and due to my limited understanding with blending and shaders I am not able to do so. I've read countless threads on reddit and on the forums but was not able to fix this. Basically, the problem is this: What I am doing exactly, is having...
  10. S

    GMS 2 Surfaces

    I don't fully understand what exactly should I do, if I have, for example, 500x500 room and some objects which I wanna smooth reduce until they're disappear. I want them to keep their coordinates relative to each others. Could you write here some code example? I've read the documentation, but...
  11. S

    Legacy GM Pixelated circles?

    I am wondering how to create pixelated circles using draw_circle(); and possibly surfaces. I've never really used surfaces or had a reason to so i would like to know if i can use them in conjunction with the built in circle function to make crisp dynamic pixel art circles, or if i would have to...
  12. T

    A question about surfaces, and sprite_create functions

    In the manual when it talks about surfaces it's always pointed out that they are volatile, and as such unreliable. However, when talking about created sprites, such as sprite_create_from_surface, the same point is not made. The manual says about having to clear up created sprites to avoid...
  13. N

    Legacy GM Transition

    Heyall! I made a sprite with a transparent circle on it. I used it for a transition, but it is not good in my opinion, you see the pixels when it zooms in. Is there a way to create an object that draws a black rectangle and a transparent circle in the middle so you can see through it, and it...
  14. T

    Legacy GM How to subtract area's of image? Using blending or shaders

    Hi. SHORT VERSION: How do I set a specific colour in a surface to be transparent? LONG VERSION: I am trying to learn how to use the blend subtract function, and have got a bit stuck. The aim is to have an area of the screen which is transparent, so a layer behind it can be seen. Ultimately it...
  15. barret232hxc

    [SOLVED] How to draw a circular surface which is set to a view GMS2

    I have made a surface draw a view which is outside of the players current view to see things which farther away, but the shape is square and I'd like it to be a circle shape. I saw you can cut out a circle so I tried using another surface to draw on top of the surface with the view. but it's not...
  16. G

    Asset - Project Draw & Color picker - Drawing Asset

    New: Text tool! Do you want to draw? And with different colors? And different sizes? Maybe want to make a drawing program? Then you need this! This is a link to the marketplace. Includes: You can draw with different colors and sizes. Color picker with hue, saturation and value. Changing...
  17. RyanC

    Android Trying to use Non Existing Surface - Error

    Hey Guys, I've been getting a strange error for some time now and cannot seem to fix it. I'm getting a "trying to use non existing surface" error when my game is interrupted by a telephone call on mobile. This is what I have in an alarm[0] event, the alarm[0] = 1 in create event. create event...
  18. R

    Legacy GM Some help with a (seemingly) peculiar issue with surfaces?

    Hi again everyone! Sorry to be bugging the forums (yet) again, but I have run into an issue with drawing to a surface that for the life of me I can't seem to fix, or even debug. The idea was to create a surface to deal with simplistic lighting effects utilizing blend modes and the like...
  19. Ches Rowe

    Help with dynamically creating sprites from surfaces.

    So in the game I am creating, there is randomly generated land consisting of 16X16 tiles. After the land is generated, I merge all the flat stretches of tiles into a single object. Now since the game will have a huge randomly generated map, I've decided it would be best to dynamically create and...
  20. Pyxus

    GMS 2 [Solved] Hiding object behind transparent sprite

    What I want to create is a "invisible" sprite that can not be seen, but when specific objects pass beneath it those objects are hidden behind it. Essentially I want to make a "cloak of invisibility" effect. I'm assuming using a surface is how I would go about accomplishing this but I'm still...
Top