S
SeMike
Guest
Hi guys I watned to ask you
Im doing items and I would like to ask you If I can do
item_slot[n].sprite or .smth?
Thank you
Im doing items and I would like to ask you If I can do
item_slot[n].sprite or .smth?
Thank you
if OBJ_Player.hp <= 0 {
with(OBJ_Player) {
instance_destroy();
}
}
enemy = other.id
if enemy.hp <= 0 {
with(enemy) instance_destroy();
}
item_slot[0] = SPR_Gun;
item_slot[1] = SPR_Ammo;
item_slot[2] = SPR_HealthPotion;
item_slot[3] = SPR_Food;
item_slot[0, 0] = "Sword"; //Name of the item
item_slot[0, 1] = spr_sword;
if(inv=1){ // ZOBRAZIT INVENTAR (NON-EQUPIED ITEMS)
n=0
repeat(inventory_slots)
{
if(inv_slot[n]=0) then item_sprite=spr_free_item_slot else item_sprite=inv_slot[n].spr;
draw_sprite(item_sprite,0,view_xview+520+32*n+2,view_yview+450)
n+=1
}
}