Re: How Do I SBARINFO? - A Tutorial
Posted: Sat Sep 03, 2016 7:15 am
Wouldn't that cause ALL of the ininventory sprites to get drawn? That would sort of mess things up in that regard, wouldn't it?Arookas wrote:You could try to simplify it by not using else/if for the ammo sprite bars and drawing only one sprite per ininventory, like this:
You could also utilize weapon primary/secondary ammo icons, as well as weapon icons so that you only draw icons for the weapons/ammo in one place. You could then set the offsets of specific icons in their respective graphic files if you need to have the positions differ.Code: Select all
InInventory HDSecondPistolLoaded, 15 { DrawImage "BULLD0",321,88,none,8,8; } InInventory HDSecondPistolLoaded, 14 { DrawImage "BULLD0",324,88,none,8,8; } InInventory HDSecondPistolLoaded, 13 { DrawImage "BULLD0",327,88,none,8,8; } InInventory HDSecondPistolLoaded, 12 { DrawImage "BULLD0",330,88,none,8,8; } InInventory HDSecondPistolLoaded, 11 { DrawImage "BULLD0",333,88,none,8,8; } InInventory HDSecondPistolLoaded, 10 { DrawImage "BULLD0",336,88,none,8,8; } InInventory HDSecondPistolLoaded, 9 { DrawImage "BULLD0",339,88,none,8,8; } InInventory HDSecondPistolLoaded, 8 { DrawImage "BULLD0",342,88,none,8,8; } InInventory HDSecondPistolLoaded, 7 { DrawImage "BULLD0",345,88,none,8,8; } InInventory HDSecondPistolLoaded, 6 { DrawImage "BULLD0",348,88,none,8,8; } InInventory HDSecondPistolLoaded, 5 { DrawImage "BULLD0",328,95,none,8,8; } InInventory HDSecondPistolLoaded, 4 { DrawImage "BULLD0",331,95,none,8,8; } InInventory HDSecondPistolLoaded, 3 { DrawImage "BULLD0",334,95,none,8,8; } InInventory HDSecondPistolLoaded, 2 { DrawImage "BULLD0",337,95,none,8,8; } InInventory HDSecondPistolLoaded, 1 { DrawImage "BULLD0",340,95,none,8,8; }