Forum rules - please read before posting.

Scene object visibility on "Inventory:Select - Ignore Current Inventory"

Hello! Long time no see! :smiley:

Here's something I have always wondered but have never quite figured out. Suppose I have an object in a scene that I want players to "grab" but not actually take into inventory; for example, imagine a lid on a jar where players will simply lift the lid to see a letter inside it. Right now, I'm handling it with the lid as an inventory item with an optional cursor that displays as a "grabby hand" grasping the object. In my scene, the lid just disappears while players see and grab the letter, then once they have grabbed the letter, the scene lid reappears. The part that confuses me is that after that, I would like for them to still be able to lift the lid (to see that the jar is empty) and have the scene lid still disappear, then reappear once they release it. So basically, for any item, I want it to disappear while they're "grabbing" it, then reappear when they let it go.

Is there any way to do this without a script??

Thanks for your help!

Ann
AC v1.83.0
Unity 6000.0.26M1

Comments

  • edited August 6

    Hi Ann, welcome back.

    As this is a visual question, could you share a screenshot / illustration of the lid situation you describe? I'm not sure how the image above relates.

    I'm also not quite sure of the difference between what you're wanting, and what you already have. It sounds like lid re-appears in both cases.

    If you're using Inventory items, one thing you could do is rely on the Event Runner component to listen out for the "lid" Item being selected and de-selected, and then hide/show the equivalent sprite/Hotspot in the scene.

    The Event Runner, when placed in a scene, allows you to run ActionLists when specific events take place. Use it to create e.g. an Inventory / Add event, and have it react to the Lid item. The Cutscene - which should hide the Lid in the scene - will only be run when the Lid item is selected by the Player.

  • Sorry... let me explain that better. The video above shows what I did as a work-around. Here's my dilemma:

    1. This is what happens when I simply try to select the object as an inventory item to lift it off the jar - the action list is superimposed on the image. You can see that the scene lid stays in place, even though it's "grabbed":

    2. This is what happens when I add the action to make the lid (the scene lid on the jar) become invisible while I grab it:

    I will definitely look into your suggestion above, but to be sure, what I want is to be able to have the lid disappear from the jar if I lift it (let's assume the letter is already gone) and then reappear on the jar when I let go. Does that make sense??

  • Update: IT WORKED!!!! That Event Runner is going to be a real game-changer for me! Thank you!!! o:)

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.