Goombert
|
|
Posted on: December 09, 2013, 07:25:02 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
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. 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.0The GitHub ticket for this issue can be found here. https://github.com/enigma-dev/enigma-dev/issues/560
|
|
« Last Edit: December 09, 2013, 07:31:57 pm by Robert B Colton »
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
polygone
|
|
Reply #1 Posted on: December 09, 2013, 07:32:50 pm |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
Add setting, only way to have compatibility with both.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
Goombert
|
|
Reply #2 Posted on: December 09, 2013, 07:41:37 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
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.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
polygone
|
|
Reply #4 Posted on: December 10, 2013, 07:59:29 am |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
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.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
Goombert
|
|
Reply #5 Posted on: December 10, 2013, 08:56:41 am |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
No setting necessary; what you did already was fine.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
polygone
|
|
Reply #6 Posted on: December 10, 2013, 02:18:23 pm |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
Well I've just added d3d_draw_sprite and d3d_draw_background now. Those can both be used with draw_set_color.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
Goombert
|
|
Reply #7 Posted on: December 10, 2013, 05:34:56 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
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.
|
|
« Last Edit: June 15, 2016, 05:52:25 pm by BlitzBert »
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|
|