Mobile Compatible Dual Wield Tool System?

Goal
I would like to develop a system for equipping and storing tools where the player has the option of equipping a tool for their hand of choice, when one hand has a tool equipped the other hand cannot equip that same tool

My current layout

image

The idea with this gui is that when a player left clicks a slot, it will put a selection box around the slot and the player will then equip the tool in that slot into the left hand, and the left hand image will be replaced with an image of the equipped tool

for example, if you have a sword in slot #2 and left click on it, the gui will look something like this

image

equipping a tool into your right hand will function similarly, except you will right click on the slot instead of left clicking it

when a tool is selected into a hand, you will hit the corresponding mouse button to use the tool in that hand, so if you have the sword from earlier in your left hand and you left click, the sword tool will be activated

Issues

I don’t know how to adapt the system I have right now to function on mobile, since mobile users do not have an equivalent of left and right click, I also don’t think that the gui is very easy to understand on first glance

I think probably the best way is to make a drag and drop system where the mobile user can drag the tool he or she want into the corresponding hand.

Otherwise, ifbyour player does not need to switch between weapons quick and constantly make ot so that the inventory bar is part of what is in his or her backpack. So instead of equiping the tools from the tool bar equip from the inventory or backpack instead.

1 Like

I would suggest just having buttons corresponding to actions. While it might be a bit harder to use for mobile players, there’s not much else you can do.