Skip to content
Discussion options

You must be logged in to vote

I'll provide an example with pseudo variables for you to get an idea of what you need to do

Step:

if (mask_delay > 0)
{
    mask_delay--;
} 
else
{
    mask_radius += 6;
}

if (mask_radius > big_number)
{
	if (surface_exists(surf_title))
	{
		surface_free(surf_title);
	}
	
    instance_destroy();
}

Draw GUI

if (!surface_exists(surf_title))
{
    surf_title = surface_create(width, height);
    surface_set_target(surf_title);
    draw_clear_alpha(c_black, 0);
    draw_sprite(your_sprite, 0, 212, 120);
    surface_reset_target();
}

if (surface_exists(surf_title))
{
    surface_set_target(surf_title);
	
    // "Erase" the sprite
    gpu_set_blendmode(bm_subtract);
    draw_set_color(c_white…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SonicVHSOfficial
Comment options

@TrianglyRU
Comment options

Answer selected by TrianglyRU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants