Pages: 1
Author Topic: Studio vs Legacy Alpha and Color  (45,930 Views)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Posted on: December 10, 2013, 12:25:02 AM


After realizing that some of the Game Maker sprite and background functions are not affected by the set drawing color and alpha I decided to run some tests. In the above two screenshots you can see a little test I ran in Studio and 8.1 with the code below. Notice in Studio the background function is affected by alpha but not color and in 8.1 it was affected by neither.

Code (edl) Select

draw_set_color(c_red);
draw_set_alpha(0.5);
draw_background(bkg_0,0,0);


My solution to this was to simply allow all background and sprite and standard draw functions that do not accept color to be affected by the set drawing color and alpha. However, due to outcries from retarded trolls (cheeseboy/polygon) they want the old legacy Game Maker behavior which breaks support for Studio's version of the functions.

Part of this issue was starting to unfold in the following post.
http://enigma-dev.org/forums/index.php?topic=1632.0

The GitHub ticket for this issue can be found here.
https://github.com/enigma-dev/enigma-dev/issues/560
Offline (Unknown gender) polygone

Contributor
Joined: Mar 2009
Posts: 794
View profile
Reply #1 Posted on: December 10, 2013, 12:32:50 AM
Add setting, only way to have compatibility with both.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #2 Posted on: December 10, 2013, 12:41:37 AM
I suggested draw_set_sprite_color/alpha draw_set_background_color/alpha for sprite and background functions that do not accept color/alpha. But you went ahead and overloaded all the functions to accept them ass parameters, which I am fine with.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #3 Posted on: December 10, 2013, 09:17:23 AM
We will never support several GM versions, because they are not compatible even within GM versions. So I don't think we need to replicate EVERYTHING. I might even been fine with bound color and alpha changing sprite/background functions. But I guess overloads will work fine as well.
Offline (Unknown gender) polygone

Contributor
Joined: Mar 2009
Posts: 794
View profile
Reply #4 Posted on: December 10, 2013, 12:59:29 PM
I still think it's best to have a setting and duplicate the functions, this is the easiest and most efficient way to do things and allow full compatibility. I will do it myself if a setting is added.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #5 Posted on: December 10, 2013, 01:56:41 PM
No setting necessary; what you did already was fine.
Offline (Unknown gender) polygone

Contributor
Joined: Mar 2009
Posts: 794
View profile
Reply #6 Posted on: December 10, 2013, 07:18:23 PM
Well I've just added d3d_draw_sprite and d3d_draw_background now. Those can both be used with draw_set_color.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #7 Posted on: December 10, 2013, 10:34:56 PM
Fucking polygone, I already told you not to fucking add those. You can use transformations on the 2D functions, let people use the draw wall commands because it will be able to batch more of those without flushing. And we still have to add texture paging with those functions being a clusterfuck already, enough of your dumbass idea's.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #8 Posted on: December 11, 2013, 04:39:53 PM
Simple 4 sentences and 7 swear words. Must be a bad day.
Offline (Unknown gender) DaSpirit

Member
Joined: Apr 2013
Posts: 124
View profile
Reply #9 Posted on: December 11, 2013, 11:59:45 PM
Quote from: TheExDeus on December 11, 2013, 04:39:53 PM
Simple 4 sentences and 7 swear words. Must be a bad day.
That is normal for him. Maybe he has a bad day every day? :p
Pages: 1