1. angusbeer

    GMS 2 Draw GUI/ draw_surface alpha issue

    I'm doing a Windows port of my browser game which was made in a 1:1 aspect ratio. When stretching the window horizontally or vertically, I wanted to fill the black space with an infinite background, like this: This is the code I used in Draw GUI...
  2. KyleRansford

    GMS 2.3+ Transparency Not Working Correctly With Trigger

    I'm wanting to create a transparency effect when the player walks under a tree, so that the alpha fades to 0, then after the player leaves, the alpha goes back to 1. This is the code I've been trying out, but it only works without the else if statement. if place_meeting(x, y, o_trigger) {...
  3. FoxyOfJungle

    GMS 2.3+ surface_save(application_surface) alpha blending problem...

    Hi! #1 - I have this code in the Step Event of an object: if keyboard_check_pressed(vk_space) { surface_save(application_surface, "ImageFile.png"); } #2 - Result: As you can see, there is a color difference in anything with transparency (like the shadow of the player) between the...
  4. P

    SOLVED How to draw alpha gradient?

    Hello everybody, stuck with one problem during the game development: in our game there are 2 portals spawning enemies located on the opposite ends of the map, so, we need some way to notify player when the enemy is spawned from the portal out of his view sight: I actually imagined it somewhat...
  5. Marko03970

    I can't see instances under sprites drawn with 3D vertex buffers

    Hello, I'm trying to make fog in the game, and I used vertex_buffer and 3d drawing so I can change the depth for different layers of fog. I created it in one room and it was working pretty much well. but when I placed it in another room, I could only see fog, and terrain tiles under it. I can...
  6. Heavybrush

    drawing a sprite on a text using a text alpha

    hello guys I'm trying to make a particular effect I need to mix a text drawn by code and overlap a sprite to use a particular blend mode the only thing, I don't want to break the background, i need it only on the text maybe using gpu alpha?? ps: as a plus, by any chance, there is a way to...
  7. ZacKow264

    SOLVED Stop alpha from blending?

    How can I draw a primitive shape or a sprite with a certain alpha, but not have the alpha values add together when they overlap? I've tried disabling alpha blend, but that seems to set the alpha of everything back to 1. For instance if I have two rectangle draw at 0.5 alpha, if they overlapped...
  8. R

    Background visible through solid sprites

    Hi all, This may be an obvious one for any of you pro's out there but for some reason my level looks transparent and the background can be seen through it. Even stranger is this only happens sometimes. I have have about 10 layers for game objects and game functions and then 7 background layers...
  9. DaveInDev

    Demo Space Numbers

    Hi there, I just published a "Space Numbers", my first game under GSM2. Space Numbers is a puzzle game about mental calculations, but in a deep space scifi environment, to add some fun and complexity. It will challenge your brain ! At low levels, it is suitable for young players to learn and...
  10. Nathan

    GMS 2.3+ Changing the opacity of a Room layer in the room creation code

    I have an instance layer that is only in the beginning of the game that needs to have its opacity adjusted. It contains objects that are elsewhere in the stage, but the object (instances) itself needs to remain at 100% opacity for every other instance it is used in the game, therefor it's...
  11. M

    fading alpha based on distance between two objects

    Hey, how can I make so that a drawn object's (obj_storm_effect) alpha fades based on the distance between two objects (obj_player and obj_storm) ? So that the alpha is 0 when obj_player and obj_storm are far from one another and alpha is 1 when close? thank you!
  12. NewHopeGames

    Team Request Currently looking for playtesters

    Hi! Currently looking for alpha/beta testers for our android games. If anyone is interested, pm me your email and I can put you on the list. All testers are the first to get the new updates and play the games. 🙂 Many thanks in advance!
  13. 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...
  14. D

    How to use shaders to make parts of an object transparent based upon contact with another object?

    I am trying to make a game in GameMaker 2 where objects become transparent depending on the object behind them. I currently have it so I am just checking each step (within the object to become transparent) whether in contact with the background object and then setting alpha to 0.5 if true. Here...
  15. M

    weird alpha during pause?

    Hey, so I implemented pause in my game with following codes: obj_pause: Create paused = false; scrn = -1; Alarm 0 scrn = sprite_create_from_surface(application_surface,0,0,surface_get_width(application_surface),surface_get_height(application_surface),0,1,0,0); instance_deactivate_all(true)...
  16. Tony M

    Shaders [SOLVED] Dark outline around sprites introduced when I added a shader and surface to project

    Hi, I have successfully implemented a full screen wave shader that I adapted from here: The shader itself works quite well, but has unfortunately introduced an issue with my sprites. Sprites with semi transparent edges (anti-aliasing)...
  17. CodeManu

    GMS 2 Save surface with the "correct" alpha blending

    Hey all! I've been trying to export an surface (via surface_save method) into a .png, but due to how alpha blending works on surfaces it gets tinted (towards black as I'm using draw_clear_alpha(c_black,0) to clear the surface). I know this is the correct behaviour, and that It can be fixed by...
  18. Divinik

    Alpha Hell is For Heroes // Progress Update Video!

    I've been working on the battle mode for a while now, and I'm proud to say it's now 100% fully functional. Check it out: Now if only I had actual artwork :/
  19. Morkinas

    GML [SOLVED] Draw line alpha

    Hello, so i need to draw line with 0.5 alpha, but I guess I can only add the fade point so it starts with alpha=1 and fades to my set value 0.01 in this case. I need to set start and end alpha to 0.5 Draw Event var dir = point_direction(x, y, mouse_x, mouse_y); var d = 1800; //Hitscan for(var...
  20. William Garrison

    GMS 2 Expressions inside a variable

    Im trying to ease in the alpha of a rectangle I drew to the screen. It draws fine of course. Just cant get my brain around how to ease in the alpha. I know how to set the actual script for easing and i have that. It just doesnt animate. Which makes me think you cant do it how I am doing it. Im...