Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Selection and use

Discussion in 'Scripting' started by WolfmanGT123, Apr 9, 2022.

  1. WolfmanGT123

    WolfmanGT123

    Joined:
    Jun 28, 2021
    Posts:
    13
    A Bit of a strange one this, but im working on a project and im trying to be able to use an obect that i have picked up on another object/sprite. Once this is done then it will give me the option to add something else.

    Im not sure if the best way is coding or visual scripting, either way im a little stuck
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,713
    Steps to success:

    - find a game that does what you mean by "able to use" in this context

    - get a video of the sequence of this "using" you refer to

    - painstakingly go through the video and make a list of all the parts of it:
    ---> items change (how?)
    ---> new items form
    ---> numbers change
    ---> player explodes into flame
    ----> etc

    - begin working on just ONE of those steps at a time.

    EDIT: I see this isn't the first time we've spoken:

    https://forum.unity.com/threads/reducing-an-item-level.1140685/#post-7327486

    I urge you to put effort into describing in objective term what you mean in order to understand the engineering you might need to do.
     
  3. WolfmanGT123

    WolfmanGT123

    Joined:
    Jun 28, 2021
    Posts:
    13
    You may have misunderstood me.
    I want the item that i have picked up to interact with the second.
    For example:
    I attempt to open the door, but its locked. If i find a key and open the door, it unlocks and says door is now unlocked