• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Draw GUI/ draw_surface alpha issue

angusbeer

Member
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:

image_2021-12-11_235000.png

This is the code I used in Draw GUI:

Code:
draw_sprite_tiled(spr_background_hearts,0,0,0); //the infinite background
draw_surface(application_surface,0,0);
It's mostly working, but anything with alpha elements just looks off. I made an example sprite to show what I mean; on the right is with Draw GUI elements turned on. Notice how you can see through to the background around the edge.
Any idea on what's happening and how to fix it?

ex1.png
 
Top