Jump to content


xot

Member Since 07 May 2004
Offline Last Active Today, 07:49 AM

Posts I've Made

In Topic: Inverted Surface Doesn'T Fade Out

18 May 2013 - 09:57 PM

Everything is working as expected, and alpha does work with that blend mode. You are just confused about how to properly achieve the effect.

It sounds like you want to display the screen with inverted colors and gradual fade the effect back to normal colors. There are a lot of way to go about this, but this is one of the simpler options using simplified (and untested) code. I'll let you worry about the details and structuring it for events.
 
draw_set_color(c_white);
draw_set_alpha(1);
for (_alpha=0; _alpha<1; _alpha+=_speed) {
    draw_surface(_view_surface, 0, 0);
    draw_set_blend_mode_ext(bm_dest_inv_color, bm_zero);
    draw_rectangle(0, 0, width, height, false);
    draw_set_blend_mode(bm_normal);
    draw_surface_ext(_view_surface, 0, 0, 1, 1, 0, c_white, _alpha);
}

In Topic: The Great Gmcjam #10 Announcement Topic!

26 April 2013 - 04:54 PM

Man, I'm starting to get excited for this! Hope I can figure out a way to honor the themes of this and Ludum Dare at the same time. Also, finish.  :teehee:

In Topic: Host-A.Net Is Back Up

23 April 2013 - 08:02 PM

Every project link I post is a Host-A link, Yal. :(

In Topic: Why Fire True Valhalla?

23 April 2013 - 03:58 AM

Well said, Smarty.

In Topic: Yoyo Are Not Selling Out - April Fools

03 April 2013 - 02:53 PM

I like how he didn't bother to cite or fact check anything. Garme Jurnalizm!