Forum rules - please read before posting.

Arranging puzzle + Inventory

Hi, I saw someone asked this same thing over here, but I didn't understand what they did to fix the issue. Here is a video of the issue and a picture of the puzzle pieces and slots. The way this puzzle works is you switch the pieces around until you find teh right order. The puzzle itself and the inventory are working perfectly fine, it's just that when you drag a piece to the inventory (and drop it right over another inventory item) it adds the piece as an inventory item, and this should not happen, as the pieces should only interact with each other's slots. I tried making the puzzle boundary smaller or moving the puzzle further from the inventory but it still adds it, as it's tied to the cursor, apparently.

Comments

  • The solution I provided in the other thread was a custom script that disables input while Inventory Items that are not in the Inventory menu are selected.

    Did you try it? You just need to copy the code into a C# file named DynamicInventoryInput and place it on a GameObject in the scene - renaming "Inventory" to match the name of your Inventory menu if different.

  • I'm sorry, I hadn't understood how to implement it, it worked perfectly now, thank you

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.