S
Stefqnutz
Guest
Hello so today I was working on my game and I wanted to implement 3D Sprites in my game. The sprite is drawing fine (like no errors or something) but the background of the sprite is not transparent, it's the same as the sky color. Keep in mind that the sprite is transparent. Anybody can help me? Thanks.
Here is the code:
d3d_transform_set_identity();
d3d_transform_add_rotation_z(point_direction(x,y,obj_cam.x,obj_cam.y));
d3d_transform_set_translation(x,y,0);
d3d_draw_wall(0,-10,20,0,10,0,sprite_get_texture(sprite0,0),1,1)
d3d_transform_set_identity();
Here is the code:
d3d_transform_set_identity();
d3d_transform_add_rotation_z(point_direction(x,y,obj_cam.x,obj_cam.y));
d3d_transform_set_translation(x,y,0);
d3d_draw_wall(0,-10,20,0,10,0,sprite_get_texture(sprite0,0),1,1)
d3d_transform_set_identity();