Stacking and shield switching…
Posted in GUI, Items, Zombox on February 8th, 2013 by Tyson IbeleSo, I made a fairly substantial change to the inventory system in Zombox this week…
Now you can stack similar items on top of each other! This will allow you to carry many more items (so long as they are within your carrying weight limit — which I also doubled for each character), and make it a lot easier to quickly craft large numbers of things. Also, single-use items like pipe bombs, molotovs, bear traps, etc, will be easier to carry around in bulk. Each slot has a 99 item limit, which should be more than enough for all of your toting needs. When an item socket contains a stack of items, clicking once will grab the top-most item, and double-clicking will grab the whole stack. This makes it easy to quickly move stacks around.
This new system required a complete rewrite of all the existing inventory UI code, so it’s what I spent the majority of my Zombox development time this week doing…but in the meantime I also added another feature: players who are holding a shield in their passive item slot can now manually switch it from front to back (by pressing on the passive item socket). This will give players a strategic advantage in many situations. For example, if you’re trying to unlock a door but have zombies coming towards you, switching the shield onto your back will give you added protection.
Below are two animation…one showing how stacking works and the other showing how shield switching works!