Making Dialogue with Inky and Unity Tutorial

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • Ever wonder how to convey your characters' thoughts or have your game talk to your player? In this tutorial, we take a look into a script tool called Inky from Inklestudios and write up a small dialogue for Phoenix wright in Unity!
    **Resources**
    Ink by Inklestudios: www.inklestudi...
    Brackey's Dialogue System: • How to make a Dialogue...
    Github: github.com/Ris...
    Join the discord group: / discord
    Catch me Live on Twitch: / the_phantom3
    *Disclaimer: The characters and music involved in this level do not belong to me. All of them belong to their respectful owner(s). Usually Nintendo.

КОМЕНТАРІ • 34

  • @fearian
    @fearian 2 роки тому +7

    Thanks for this- very clear walkthrough of an Ink setup in unity!

  • @BagelMaster
    @BagelMaster 4 роки тому +13

    Great tutorial. Btw, not sure if I missed it, but what did you put in your "Selectable" script? You add it to the choice game objects at 10:38

    • @thephantomgamedesigns3121
      @thephantomgamedesigns3121  4 роки тому +7

      In the selectable script, essentially it acts like a small temporarily data container with a method called Decide() which refers back to the SetDecision() function underneath. This is a way to dynamically create and attach something to the button. Honestly, it can be done better and maybe more properly with ScriptableObjects. In the script, it just looks like this:
      public class Selectable : MonoBehaviour
      {
      public object element;
      public void Decide()
      {
      DialogueManager.SetDecision(element);
      }
      }
      the object element is created with the intention to store the actual choice option object there. Since its an object types, it can store other datatypes as well like int, string, etc. If the person selects that, it will pass that stored choice in element back to the Dialogue Manager via SetDecision().
      Hope this helps!

  • @spacedoggames5335
    @spacedoggames5335 3 роки тому +5

    Mind if I ask if you have found a solution to this problem...
    I have a global VAR in ink that if true reveals more questions.
    The idea is to achieve something in the game and when returning to an NPC now have that new questions available.
    It works if the story run from the beginning. But not so well if I load a story progress.
    What I'm looking for is away of refreshing the current load of a stroy to be able to access any new questions.
    Does this make sense?
    Thanks for you time.
    And for sharing your video.

  • @simulation3120
    @simulation3120 4 роки тому +5

    Much appreciated!

  • @dfang4482
    @dfang4482 3 роки тому +2

    Thank you! This is a great tutorial!

  • @KeyDay009
    @KeyDay009 Рік тому

    Thank you for the video, this was a very simple tutorial and was very easy to follow.

  • @DavidsUternal
    @DavidsUternal 2 роки тому +2

    Great tutorial, probably one of my favorites ever, but I have a problem. Unity keeps throwing "NullReferenceException: Object reference not set to an instance of an object". The only difference between my script and yours is mine has no reference to the animations, otherwise it's copy paste. I'm a programming noob, so maybe it's simple, but I've looked it up and can't find the issue
    Edit: Nevermind, I fixed my issue. For anyone in the same situation make sure your ink fine is compiled into a text asset (I thought turning it into a json did this already but for some reason doing it in unity instead is the only thing that worked. Again wonderful tutorial exactly what I wanted

  • @AshishKumar-kv1jf
    @AshishKumar-kv1jf Рік тому

    "Inky knows those are comment" - I am not afraid of mass surveillance but THAT SCARES ME

  • @dreamisover9813
    @dreamisover9813 4 роки тому +3

    Thanks, good tutorial :)

  • @coderaven1107
    @coderaven1107 2 роки тому

    Great vid, just earned yourself a sub :)

  • @Hari983
    @Hari983 2 місяці тому

    Great video thanks!

  • @thedude110
    @thedude110 3 роки тому +2

    Great tutorial, would love to see you teaching Yarn Spinner too =) there aren't any good tutorials out there about Yarne

  • @jamaicaalberto2920
    @jamaicaalberto2920 2 роки тому

    this is amazing thank you!

  • @ZENAKUamv
    @ZENAKUamv 3 роки тому

    In the c# script is there a way to take the index of the line from the dialogue? Or any other way to save it?

  • @md.sabbirahmed2700
    @md.sabbirahmed2700 3 роки тому +3

    How do i start making a vn in unity? Is the learning curve too hard?

    • @thephantomgamedesigns3121
      @thephantomgamedesigns3121  3 роки тому +3

      It really depends on the scope of your vn idea. Have to think it really through and what exactly you want to put into the visual novel game. Personally, I don't think its too hard but I can see it being tricky with syncing up animation and doing some effects on time.
      There may be some beginner or easy basic visual novel series out there that you can follow. Use it as a base and try to expand upon it to your liking. Hope this helps.

    • @lazykid9167
      @lazykid9167 3 роки тому

      I think you should just buy naninovel from the assetstore and go on with your game. not cheap, but its worth it .

    • @ProkerKusaka
      @ProkerKusaka 3 роки тому +1

      Check for Fungus in assets store

  • @lisasaghia8653
    @lisasaghia8653 2 роки тому

    and if i have more actor of my story? how i connect my response with a actor with the dialogue of another actor?

  • @chris.davidoff
    @chris.davidoff 3 роки тому

    Is there any way to enumerate tags so that I don't have to parse a string each time?

  • @sayoneenandi2612
    @sayoneenandi2612 3 роки тому +1

    How do I put in a point system using inky?

  • @salfas7375
    @salfas7375 2 роки тому

    can u explain how to setup the showchoices?
    after next dialogue it doesn't show up anymore
    and how to move a side duplicate button?

  • @zenosyeetgalvus
    @zenosyeetgalvus Рік тому

    What about conditionals or stat checks

  • @MrYannoskov
    @MrYannoskov 4 роки тому

    Hey, very good tutorial, but what did you put in your CharacterScript.cs ?

    • @testingno7199
      @testingno7199 3 роки тому

      you can look at the script on github. The link is in the description and the file is Ink-with-Unity-2019.3/Assets/CharacterScript.cs

  • @y01cu_yt
    @y01cu_yt 2 роки тому

    Thanks!

  • @thewomanizer3035
    @thewomanizer3035 3 роки тому

    Es genial, deberias de hacer mas

  • @Nick77ab2
    @Nick77ab2 Рік тому +1

    afaik your AdvanceFromDecision is never reached.

  • @Ksu8O8
    @Ksu8O8 3 роки тому

    Does it work with 3d?

  • @KirbyKidG
    @KirbyKidG 3 роки тому

    Yo can you recreate the day system of pikmin in unity

  • @tramsroy
    @tramsroy Рік тому

    7;25, you just jump into a script without explaining what it is or how to get it...

  • @usagikidd
    @usagikidd Рік тому

    If anyone doesn't want to waste their time instantiating buttons and destroying them, simply remove the listener, or else inky will complain nonstop
    temp.GetComponent().onClick.RemoveAllListeners();