Forum rules - please read before posting.

(Question)Puzzle template: Item arranging

Hi, I'm new to this asset but it really is a lifesaver, love it. And this forum is a nice place as well.

(Apologize ahead if this is a stupid question, I don't quite have knowledge of coding & my first language isn't English.)


I'm using the Item Arranging template to achieve my drag & drop mini game in my project. It worked really nice.

But the small problem is: I have 3 items and 3 slots. And I only want the item to be placed into the slot, I don't want items to be swapped with each other.(I'm making a horror game where you need to dissect bodys so...Organs shifting places looks a bit weird.) And I have no idea how to script it...

Also, when I'm searching around in forum, I saw a October 2020 post that said "Lock When Correct" option was added to the piece component. But I couldn't find it anywhere, was it deleted or it's just I missed it?


If anyone can help/guide me with this, I really appreaciate it<3.

Comments

  • Welcome to the community, @GOA_lien.

    The "Lock When Correct" dropdown field is a global setting - it should be on the Arranging Puzzle Manager component, rather than individual pieces.

    Setting this to "After Each Correct Placement" will prevent a piece from being able to move once placed in the correct slot.

    Though, it's still possible to move/swap pieces if they get placed in the wrong slot. Are you looking to prevent this, so that each piece can only be placed in their correct slot?

  • Thanks for reply!

    I checked all around yesterday and didn't found the manager, but I found it now after your guide——didn't realize that value is on the Collection component of items. Sorry for missing out.

    I set the "lock when correct" and "only correct accepted", it worked perfectly now :) Thank you again for your patience.

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.