Rivo
7014
Here is a pic of what my inventory looks like when drawn to the room without the surface:
Here's what it looks like when drawn to a surface:
The sprites are drawn separate. It can't be an issue with them overlapping since they are placed next to each other pixel perfect. So why is this happening? I know the difference is only small but I need it to be perfect. Can someone please help?
The sprites are drawn separate. It can't be an issue with them overlapping since they are placed next to each other pixel perfect. So why is this happening? I know the difference is only small but I need it to be perfect. Can someone please help?
Code:
/// Draw inventory to surface
if !surface_exists(InvSurf) {InvSurf = surface_create(view_wview, view_hview);}
surface_set_target(InvSurf);
// draw base
draw_sprite(sBase, 0, view_xview+(view_wview)/2, view_yview+(view_hview)/4);
// draw descriptions
draw_sprite(sTLDescription, 0, ((view_xview+(view_wview)/2)-85)-55, view_yview+(view_hview)/4);
draw_sprite(sBLDescription, 0, ((view_xview+(view_wview)/2)-85)-55, (view_yview+(view_hview)/4)+64);
// draw scroll bar
draw_sprite(sScrollBar, 0, ((view_xview+(view_wview)/2)+85), (view_yview+(view_hview)/4)+28);
// draw exit button
draw_sprite(sExitButton, 0, ((view_xview+(view_wview)/2)+85), (view_yview+(view_hview)/4)-1);
surface_reset_target();
// draw surface
draw_surface(InvSurf, view_xview, view_yview);