Surfaces and Alpha - GameMaker Tutorial
Drawing on surfaces is all fun and games until you begin to notice that certain parts of them have become transparent where they probably shouldn't be. There isn't really a nice, easy, single solution to alpha on surfaces in GameMaker, but here are a few simple things you can do to address the issues!
Reverend's video goes into way more detail, and features a few more complicated (but comprehensive) solutions:
https://www.youtube.com/watch?v=SsuQIImPMTQ
The code:
https://github.com/DragoniteSpam-GameMaker-Tutorials/TutorialSurfacesAndAlpha
Shader playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrdkihto8Xu7hhp1-5Gj8zsa
GameMaker 3D playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrcML9uqHe4fwBVTm650Vy3V
GameMaker Studio 2 playlist:
https://www.youtube.com/playlist?list=PL_hT--4HOvrdAGC6YHCqn_VR69GlR_rQw
0:00 Introduction
1:46 What the desired behavior of alpha on surfaces usually is
2:49 What actually happens
3:50 Blending math happens to alpha, too
5:32 Why this doesn't happen when youre drawing onto the application surface
5:52 gpu_set_blendenable
6:42 Using a shader
8:58 gpu_set_colorwriteenable
10:02 The end
#GameMaker
#GameMakerSurfaces
#GameMakerSurfaceTransparency
- - - - -
I've now made that Patreon:
https://www.patreon.com/wizardragon
That promised social media link spam.
https://twitter.com/DragoniteSpam
Transition / idle music is by my old friend Kamex:
https://www.youtube.com/user/GreatGabite/about
Rate, comment, subscribe, watch more, enjoy!
Other Videos By DragoniteSpam
Other Statistics
The Game Maker - The 18th Carol Reed Mystery Statistics For DragoniteSpam
At this time, DragoniteSpam has 600,865 views for The Game Maker - The 18th Carol Reed Mystery spread across 393 videos. The game makes up over 5 days of published video on his channel, or 11.07% of the total watchable video for The Game Maker - The 18th Carol Reed Mystery on DragoniteSpam's YouTube channel.