K
Kasra
Guest
Hi there
i have a sprite like this:
and i have a code like this (simple version):
but the result is like this:
why did sprite draw like a rectangle ?!
i have a sprite like this:
and i have a code like this (simple version):
Code:
if (surf_w != view_wview[0] + 1 && surf_h != view_hview[0] + 1)
{
surface_free(surf);
surf = surface_create(view_wview[0] + 1, view_hview[0] + 1);
surf_w = view_wview[0] + 1;
surf_h = view_hview[0] + 1;
}
surface_set_target(surf);
draw_clear(c_black);
draw_set_blend_mode(bm_src_color);
//******************************LIGHT AND EFFECTS**********************************//
draw_sprite_ext(light_00, 0, 200, 200, global.ar, global.ar, 0, c_white, 1);
//******************************LIGHT AND EFFECTS**********************************//
draw_set_blend_mode(bm_normal);
surface_reset_target();
var surf_x, surf_y;
draw_surface_ext(surf, view_xview[0] - 1, view_yview[0] - 1, 1, 1, 0, c_white, 1);
why did sprite draw like a rectangle ?!