W
Wild_West
Guest
I need to draw the sprites of objects I store in a list but every time I try for some reason my inventory object draws my sprite above the object writing the code no matter where I put the y value.
I'm just doing a loop and drawing whatever's in the array at the checked position if there's something there to be drawn.
It draws exactly like I want save for the very top position. I don't know what's wrong with it
I'm just doing a loop and drawing whatever's in the array at the checked position if there's something there to be drawn.
Code:
for( i = 0; i < 7; i += 1; )
{
draw_sprite(inventory_slot_spr, 0, x, y+100*i);
if( ds_list_find_value(stones_sprites_inventory, i) != sprite_index )
{ draw_sprite( ds_list_find_value(stones_sprites_inventory, i), 0, x+100, y+200*i ); }
}