• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Draw Surface Stretched On Another Surface ???

M. Idrees

Member
Hi,
How to draw a surface with stretched size on another surface that is currently targeted ?

For example,

GML:
if surface_exists( surf1 ){
    surface_set_target(surf1);
        // draw something

        // draw the other surface
        if surface_exists(surf2)
            draw_surface_stretched( surf2, 0, 0, 128, 128 );
    }
    surface_reset_target();
}
But It doesn't work for me ?

It Draws Nothing ?
 

M. Idrees

Member
Oh Sorry I got it working.

Just set the order of the drawing and it works :)

1st Surface drawn above the 2nd surface that's why I didn't saw the drawing.

Thanks for your attention.
 
Top