Forum rules - please read before posting.

Turn off hotspots based on selected item

I recently played Book of Unwritten Tales 2. When I had an inventory item selected, it disabled all hotspots that did not have an interaction with that item. This completely eliminated the "I can't use that with that!?" dialog. Is it possible to do this using Adventure Creator? If so, how?

Comments

  • edited October 2016
    Currently the only built-in way to prevent unhandled inventory interactions is to make use of Interaction menus that incorporate Inventory items (see the 2D Demo).

    You could conceivably write a script whenever an item is selected (via the OnInventorySelect custom event) that disables all Hotspots that don't have an interaction with that item, but I'll consider adding that in as an official feature.
  • I wrote a custom script that is attached to the hotspot GameObject. The script toggles the hotspot based on the OnInventorySelect callback. It also has a list of exception item IDs, so the hotspot does not turn off for specific items. Works great.
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.