[DSG] UGHHH i need help here...

Posted by DSG on June 20, 2012, 7:30 p.m.

Does anyone know how to set a blend color for an entire tileset? Either for an entire tile set or for an entire tile layer. I can't seem to find a way to do it in GM8.1… If I can't find a way to do so, I may not be able to do a day/night engine like I had hoped :O

Also, Depths 2D is looking shweet. It's a lot of fun doing 2D too, forget 3D Depths mwahahahahahaaa.

mmm.

3D was really limiting now that I think of it.

//////////// MORE INFORMATION IN THE COMMENTS ////////////

also, i thought i'd try ending all codes with draw_set_color(global.rgb) instead of draw_set_color(c_white) hoping it'd effect the tiles aswell and everything else unless otherwise specified at the beginning of the draw code on a per-object basis.

the best way i can explain it is, i really need a function like this imaginary one i just made up i wish existed. draw_tile_layer_set_color(layer,color)

Comments

DSG 12 years, 5 months ago

i can see that possibly being useful for something else. but i have a variable, global.rgb and its = to draw_set_color(global.redv,global.greenv,global.bluev), these 3 variables change smoothly and independently to fade to different colors that are used for all objects and tiles with the exception of light sources [e.g. sytro's goggles and suit lights, the gun beam, flames, and layers of reflected light and stuff]

DSG 12 years, 5 months ago

also, it doesnt apply to the background so i cant draw a white square over the view in bm_subtract, though thats how ive done it in the past but its a poor solution as i cant draw any light sources in the behind it.

DSG 12 years, 5 months ago

I'd really appreciate that, SpectreNectar. I'm trying to code this version as clean and efficiently as possible using the best techniques to save CPU without losing the special effects.

DSG 12 years, 5 months ago

OH, wow very cool, spectrenectar! i'd love to use this but ill need it to reset every time it tints instead of paiting it on coat after coat, but that's precisely what I was looking for, awesome!

DSG 12 years, 5 months ago

Oh man, we have different coding styles haha having trouble reading what's happening im not sure how to do this, do you know how i could control it every step by a variable? or will that slow it down? looks like its creating an external resource

DSG 12 years, 5 months ago

that is doing quite well, but i'm having one issue. if i blend it to red, then to green, for example, its not resetting, its layering the tints, red and green making black. how can i have it blend from the original tileset?

DSG 12 years, 5 months ago

awesome, youre a life saver, man

DSG 12 years, 5 months ago

Thats fantastic, exactly what i need, thanks man ^^

DSG 12 years, 5 months ago

SpectreNectar, It's perfect. problem solved! Can't wait to show you how i've implemented it I'll try to have a video soon!

Zac1790 12 years, 5 months ago

Hurray - SpectreNectar saves the day!