Neptune
Member
Hello!
I'm trying to draw some sprites to a surface. However, they do not appear?
If I change the draw_clear_alpha to a value higher than 0, I can see the surface is indeed in the right area.
Any ideas or suggestions are greatly appreciated!
Thank-you,
Vether
I'm trying to draw some sprites to a surface. However, they do not appear?
If I change the draw_clear_alpha to a value higher than 0, I can see the surface is indeed in the right area.
Code:
if active = true
{
if surface_exists(surf) {draw_surface(surf,xx,y);}
if surface_exists(surf) {surface_set_target(surf);}
draw_clear_alpha(c_black,0);
for(i = 0; i < (sprite_width/160)+1; i++)
{
for(a = 0; a < (sprite_height/160)+1; a++)
{
draw_sprite(test,0,x+160*i,y+160*a);
}
}
surface_reset_target();
}
Thank-you,
Vether