Undertale DIALOGUE in Unity (Episode 2)

  Рет қаралды 14,832

Pandemonium

Pandemonium

Күн бұрын

Learn how to make an Undertale Unity3D dialogue system.
● Starting project: drive.google.com/file/d/1OpvM...
● Character Sprites: drive.google.com/drive/folder...
● Download Complete Project: drive.google.com/file/d/1l-QL...
Subscribe and turn on the notifications if you're interested to see more!
➤ Discord : / discord
➤ Patreon: / pandemonium_games
➤ Instagram: / pandemonium_games
➤ Twitter: / pandemoniumnick
➤ Itch: nickbota.itch.io/
#undertaleunity #undertaledialogue #gamedev #unity3d #tutorial#madewithunity #undertale #dialogue #pandemonium #unitydialogue #pandemoniumgames
undertale unity3d,undertale dialogue unity,unity dialogue,unity dialogue system,c# dialogue,undertale unity,undertale unity engine,dialogue system,pandemonium games,pandemonium games unity,unity dialogue menu,unity cutscenes,undertale,undertale dialogue|cutscene,unity undertale,Undertale DIALOGUE|CUTSCENE in Unity (Episode 1),dialogue system unity,unity dialogue tutorial,unity dialog,undertale dialogue,unity how to make undertale,unity npc dialogue
Intro (0:00)
Cleaning Up (0:32)
Character Movement (1:10)
NPC Interaction (3:26)
Speed Up Lines/Close Dialogue (8:20)
Restarting Dialogue (11:25)
End Line (12:50)
Huge Thanks (14:40)

Пікірлер: 169
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Hey everyone, as always let me know if something is not clear and you need help. I'll try to answer all the questions you have and I hope this helps you 🙂
@friskobar
@friskobar 3 жыл бұрын
doesnt activate the dialog quem i press E
@naufaljundiabyan1976
@naufaljundiabyan1976 3 жыл бұрын
Thank you so much for these series , i hope i can see more episodes of these series , like multiple NPC at one scene , or gaining an item to inventory after the dialogue or Different dialogue to NPC#1 after talking to NPC#2 or maybe something else. Really like it
@user-pt5hp2ip9k
@user-pt5hp2ip9k 2 жыл бұрын
Wow, i think it is the most beautiful tutorials about dialogus on youtube! Thank you, it is very useful!
@danadifilippantonio2898
@danadifilippantonio2898 3 жыл бұрын
Thank you for continuing your dialog series! Your first video was excellent and this one is even better! Your descriptions and code are really clean and clear and directly to the point. This has already helped me a lot in developing my own dialog system. I hope you can continue this series because it is SO good! Please do branching dialogs next? :))))))
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Great to hear that it's getting better! Will really think about branching dialogue and other features but this system not be the best solution for it.
@antondeleon382
@antondeleon382 3 жыл бұрын
Hello man, thank you so much for this tutorial! I hope you continue on making them! I clearly understood everything that you said in the video! Keep it up
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks a ton, I definitely will, working on one right now.
@waffwrw
@waffwrw 3 жыл бұрын
I love your tutorials soooo much! they are so clean! :D
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks a ton, means a lot! Hope they helped you and good luck on the path :)
@simonavramenko7475
@simonavramenko7475 3 жыл бұрын
Really the best tutorial on KZbin. Thank you !
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
crazy to hear that :D thanks a lot!
@beytullahkalay8541
@beytullahkalay8541 3 жыл бұрын
damn man. I was stucked with this thing. But you make it clear, Thank you.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Glad to help, good luck 🙂
@nya2286
@nya2286 Жыл бұрын
a part 3 of undertale dialogue with choices Yes or No tutorial would rlly be helpful!
@christophergraf5929
@christophergraf5929 3 жыл бұрын
This video helped me so much! Thanks a lot. I would also like to boost the idea of having dialogue choices within this system. It would be VERY helpful. Thanks again!
@christophergraf5929
@christophergraf5929 3 жыл бұрын
After playing around with this for awhile, I discovered something else that could possibly be helpful in a part 3. How could you save the dialogueFinished boolean to a PlayerPrefs or something like that? I know how to do it on fundamentally, but if it was a different PlayerPrefs for each DialogueHolder, then it would either have to be a new script for each one, or there would have to be some way to change the PlayerPref it sets each time. Is there a way to Serialize that?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Sorry for the late response. What you could do here is pass the name of the character + the dialogueFinished variable to PlayerPrefs. You need to do it as a string though, then you could just check it that string contains true of false to determine the value.
@HiBye-iz1fd
@HiBye-iz1fd 3 жыл бұрын
thank you so much, you just saved my project :')
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
made my day! Thanks for watching :)
@JoseMendoza-qs6lf
@JoseMendoza-qs6lf 3 жыл бұрын
Thank you very much friend, greetings from Peru !
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
glad to help, greetings from Moldova :D
@2Fast4Youtube
@2Fast4Youtube 3 жыл бұрын
Great video as always, it teaches me a lot. Keep the great work. Also can we get decision making next :D?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks 2Fast :) once I have a proper solution on how to do it I'll make it.
@rusPiglets
@rusPiglets 10 ай бұрын
12:45 safely end the video here? Without liking this amazing tutorial? No way, I can't be doing that! Thanks for the amazing double videos. I'll check out the others for my project!
@PandemoniumGameDev
@PandemoniumGameDev 10 ай бұрын
Thanks a lot, glad you found them useful!
@adeladam2325
@adeladam2325 Жыл бұрын
U are such a great guy man. Thanks for all this. I was wondering if you could possibly give us a tutorial for branching dialogue/dialogue options. It would mean the world
@mikearkhypov2085
@mikearkhypov2085 3 жыл бұрын
This is awesome! You must continue to make educational content!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thank you, this means a lot! Working on the second episode for complete beginners right now :)
@Zuzzy4399
@Zuzzy4399 2 жыл бұрын
awesome channel! subscribed
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Thanks!
@programero7313
@programero7313 Жыл бұрын
New follower sir, nice channel :D
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Welcome and thanks a lot!
@avzarathustra6164
@avzarathustra6164 3 жыл бұрын
This is well-crafted and pleasant. The only thing I request is that, when you have the time, perhaps you could make a tutorial about making an opening cutscene that tells a story, like you mentioned in the first video.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Will definitely try to do that, thanks for the suggestion :)
@thenodebook1981
@thenodebook1981 3 жыл бұрын
Hey man thank you so much for this system its really helpful but its just incomplete without the choices;( im too new to unity and i used to use unreal all the time before so i used your tutorial to make my dialogue system but i have no idea how to proceed with the choice part and dont wanna use some other system since they're pretty complicated
@moonheartlol8249
@moonheartlol8249 Жыл бұрын
could you continue this series? maybe have the character not able to move or the dialogue will stop if away from the npc, or maybe different choices? amazing tutorial!
@stevehudak1
@stevehudak1 3 жыл бұрын
I LOVE your Dialogue system, this saved my project. I tried to add fontSize as a condition so I wouldn't have to even use the Text field but for some reason it wont load in the inspector, even saved and refreshed, it is SerielizeField, named correctly without any errors. Just not showing up as a field in the Inspector - weird?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
that is weird indeed, what type of variable is it?
@stevehudak1
@stevehudak1 3 жыл бұрын
@@PandemoniumGameDev thansk for the reply! I was just using fontSize but never defined a variable type, interesting, so I should clearly define it as an int because the fonts increase in whole numbers? I had already added more delays and a 2nd sound variable to play during the text animating along with the typing so it's like a vocal dialogue for each DialogueLine - works great! I just added fontSize onto the list the same way and by not getting an error in C# misunderstood that it would use whatever attributes are in its library constructor. I will go back and take a close look at defining the variable. Thanks! I am stoked about how flexible your system is, the three things I am most excited about seeing it do: - load image files other than sprites, - play a video or gif, add a DialogBranch script for integrating choices directly onto the last DialogueLine object in the system.
@StigDesign
@StigDesign 3 жыл бұрын
Awsome :D
@botanictitanium3960
@botanictitanium3960 2 жыл бұрын
Lovely video and very useful! I was trying to experiment with the last bit where a character will have bonus dialogue at the end, but wanted to include more than one line, like replay the last two lines or more. Is there any kind of idea of how that would work?
@botanictitanium3960
@botanictitanium3960 2 жыл бұрын
To be more in depth, (I'm still learning, so I don't have the best coding knowledge) I thought about having a public integer called "dialoguetextShown" which would be a marker for where the dialogue resets and play the rest of the code from up there (Like, third line then going up to the fifth final line). I then tried editing some of the previous stuff, so it displays that specific line, but I am not sure of how to get the ones beyond that point. if (dialoguetextShown > 1) { int index = transform.childCount; Deactivate(); transform.GetChild(index - dialoguetextShown).gameObject.SetActive(true); yield return new WaitUntil(() => transform.GetChild(index - dialoguetextShown).GetComponent().finished); If anyone knows, please let me know! This may just look like a weird attempt. 😅
@molecular_master
@molecular_master 2 жыл бұрын
If your dialogue restarts when you spam click, here is a lil fix: -In your DialogueLine script make a new bool set it to true by default and name it something like canClick. -In your Update function, change it to GetMouseButtonUp and add the bool next to it like this if(Input.GetMouseButtonUp(0) && canClick) -set canClick there to false before everything else. -make a new function like void CanClickAgain() and put canClick = true; in there -Back in the Update function, after you set the canClick to false, invoke the CanClickAgain function and set the timer to smthg like 0.75f like this: Invoke("CanClickAgain",0.25f); -In your DialogBaseClass change the GetMouseButton to GetMouseButtonUp Done :) Cheers
@stormy2049
@stormy2049 Жыл бұрын
Thank you so much dude now my diamogue box is impeccable !!
@stormy2049
@stormy2049 Жыл бұрын
Thank you so much dude! Now my dialogue box is impeccable !!
@krystianhoyszko8820
@krystianhoyszko8820 3 жыл бұрын
Hey, loved your tutorial, everything worked perfectly. Is it possible to add choices to this system? if it is how would I go about it?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
I can imagine it working if you make the input string in the DialogueLine.cs an array of strings that contains multiple choices. But in this case you'll also need to pass in your last choice to the following lines and depending on that choice you have to activate the respective responses. Don't really think it's a great way to do it, scriptable objects seem like a better option but you can make it happen.
@Gravios74
@Gravios74 3 жыл бұрын
Ah this is wonderful! I'm using this tutorial for a game I'm making for class! I was wondering, what/how could I go about triggering things mid-dialog? Like... Say for example I wanted to move a character 20 pixels to the right or toggle on run its code and then toggle off a game object which is designated within the Dialog Line script?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Great idea, the easiest way that comes to mind is just to attach a script to a certain line of dialogue, let's say on DialogueLine3 you put a script that tells a player to move right/left, you trigger that behaviour simply in the Start/Awake method of the script. Pretty basic but will work.
@Gravios74
@Gravios74 3 жыл бұрын
@@PandemoniumGameDev Ah! Makes sense! Thank you for your help!!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@Gravios74 always glad to help :)
@Ghasticzilla
@Ghasticzilla 3 жыл бұрын
How can I make only one interactable key in the dialogue without it going nuts? I tried putting the E key to start, advance and end the dialogue like the usual games but sadly the NPC wont stop talking... Thanks so much for the tutorial!!
@2bee103
@2bee103 3 жыл бұрын
here a thank you for you ,, THANKS
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thanks for the "THANKS" :D
@ducknukem5702
@ducknukem5702 2 жыл бұрын
Hello! I want to know how to enable an animation after the dialogue ends. Like the dialogue will end then just some random animation will be.
@vladkanunnikov1443
@vladkanunnikov1443 Жыл бұрын
Thank you for the video. I succeeded but there is one small nuance. When the first dialogue is triggered, the sound from the second dialogue jumps on the first letter. Is there any way to fix this, or is it better? )
@user-yq1fx4ku3v
@user-yq1fx4ku3v 3 жыл бұрын
You're God.
@vensentlion4944
@vensentlion4944 2 жыл бұрын
in DialogueBaseClass "yield return new WaitUntil(() => Input.GetMouseButton(0));" change to "yield return new WaitUntil(() => Input.GetMouseButtonUp(0));" and then the problem with skipping dialogs or with fast typing will be solved
@teo999
@teo999 3 жыл бұрын
Thankssssssss!!!!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Welcooooome! :D
@brendankhaw6695
@brendankhaw6695 3 жыл бұрын
Hi. How would I use this for multiple different dialogues? like the character talking to different NPCS at different points in the game ?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you can activate this of object in different parts of your game, you just have to handle that from another script. Regarding the characters you can add as many as you like with this system, just change the portraits and voila, multiple characters.
@2rule709
@2rule709 3 жыл бұрын
Hey, i think i found a bug in the NPC interactions :D If you press E and a movement key (W,A,S,D) at the same time, you can move while the dialogue appears. Is there a way to fix this with more code? (Thanks for your Unity Tutorials man, it helps so much :)
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
You're a good tester 😁. Yeah the fix is very easy, just change Update in CharacterMovement.cs to this, you basically just need the else statement that locks the player velocity. private void Update() { if (!inDialogue()) { float verticalInput = Input.GetAxis("Vertical") * speed * Time.deltaTime; float horizontalInput = Input.GetAxis("Horizontal") * speed * Time.deltaTime; if (Input.GetKey(KeyCode.W) || Input.GetKey(KeyCode.S)) body.velocity = new Vector2(0, verticalInput); else if (Input.GetKey(KeyCode.A) || Input.GetKey(KeyCode.D)) body.velocity = new Vector2(horizontalInput, 0); else body.velocity = new Vector2(0, 0); } else body.velocity = Vector2.zero; }
@SincerelyZeeUnity
@SincerelyZeeUnity 2 жыл бұрын
hey.I know it's a bit late but I have a question please answer me and how do we decide what dialogue to use and when for each npc?
@isaacgaleao
@isaacgaleao 3 жыл бұрын
Oh my god is this real THANK YOU
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Realer than real :D thanks for the patience man!
@isaacgaleao
@isaacgaleao 3 жыл бұрын
@@PandemoniumGameDev yesterday I was thinking about changing my dialogue system but I was actually so tired of looking everywhere for a tutorial of Undertale-like dialogue and not finding anything Thank you for the part 2
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@isaacgaleao it's a pleasure to get feedback like this really :) let me know what else I can add here in potential future episodes
@isaacgaleao
@isaacgaleao 3 жыл бұрын
@@PandemoniumGameDev honestly this is enough for me to explore new possibilities But I always kind of struggle to save the count of how many times I talked to the NPC and with multiple choices in dialogues This could be a topic if you liked But anyways, thank you so much for these videos, they are awesome ^^
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@isaacgaleao will definitely consider that, thanks again :)
@1_____________________
@1_____________________ 3 жыл бұрын
Heya! First of all your videos are AMAZING and you need more subs. But also I ran into a problem and idk what's wrong. The function OnTriggerStay2D doesn't seem to work (I tried to check with Debug.Log and it doesn't get called at all when I enter the trigger zone, the tags are NPC in unity and in code), when I use OnTriggerEnter2D it _sometimes_ works but not consistently. Any idea what I'm doing wrong? Also another thing is once I replay the dialogue a second time, it automatically skips everything so the textbox is only there for a fraction of a second. Any help is appreciated.
@Septagon
@Septagon 3 жыл бұрын
Yes, I'm actually having the *exact* same problem. I recorded it here kzbin.info/www/bejne/hYqqnYNojct2kLM. OnTriggerStay2D isn't being called at all while the other two are being called way too much. Would love to know what we did wrong here.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thanks for the support! Check out this solution: answers.unity.com/questions/592567/why-isnt-my-ontriggerenter2d-function-working.html
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
basically you need to have rigidbodies on both objects and play around with the collision options, kinematic bodies seem to cause issues like the guys on the forum said, try to make the body dynamic and let me know if it works
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
also if OnTriggerStay2D doesn't output anything for any collider you might want to check the spelling of the method, I've had this happen way too often
@Septagon
@Septagon 3 жыл бұрын
Oh god I have the stupid. My problem was since rigidbody2d.sharedmaterial.friction wasn't working, I just flicked the rb2d on and off in the code in FixedUpdate. So the collision entered and exited every frame. I forgot i did that. It's fixed now. Still thank you for the answers and explanations, you're really one of the best unity tutorial youtubers out there, why you don't have more subs is beyond me.
@nyxtech8692
@nyxtech8692 3 жыл бұрын
So I'm using a separate player controller for a MetroidVania im making. How could i make it disable the player controller during dialogue? Thanks for this series. Its helped alot!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
same logic that is shown at 7:50, you check if the player is in dialogue and don't allow it to move if he is. Glad it helped :)
@nyxtech8692
@nyxtech8692 3 жыл бұрын
Thank youuuu!
@Brick69
@Brick69 3 жыл бұрын
Hey little thing i wanted to say, what if i save an int with number 2 and then i want flowey to say: Howdy, its been "int" days without seeing you. How would i add that to teh text
@MigzPlayzTV
@MigzPlayzTV Жыл бұрын
Hi can you make it so that dialogues will only appear once please? thanks.
@UpBeeGames
@UpBeeGames 3 жыл бұрын
And you could help me with a modification, I wanted to change the sentence when any key is pressed, like (Space)
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
not going to work properly because we're currently using Escape to exit dialogue and Escape is a part of the any key scenario. But you can do any key except Escape by changing the DialogueLine.cs Update method to this: private void Update() { if (Input.anyKey && !Input.GetKey(KeyCode.Escape)) { //Skip line if (textHolder.text != input) { StopCoroutine(lineAppear); textHolder.text = input; lineAppear = null; } //Next line else finished = true; } }
@setysssty1845
@setysssty1845 3 жыл бұрын
Its Awesome. Helped for my game. What is the best way to learn c#?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
I'd say lots of tutorials not only on Unity but pure C# tutorials as well, that helped me out a lot when starting out. From there on just experiment, look at what other people with experience are doing and just make what you love - games, apps doesn't matter. Good luck :)
@kazcrash246
@kazcrash246 2 жыл бұрын
is there a way so the NPC face us if we talk to him/her in other direction. Many thanks.
@oshinomeme6687
@oshinomeme6687 3 жыл бұрын
i have a problem! if i change the scene and go back to the previous scene the dialogues are reseted.. do you have a tip how to fix this issue? great tutorial however! keep your work :3
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
You'll have to store the dialogueFinished bool somehow, you can try binary serialization for that Quill has a good tutorial on that.
@oshinomeme6687
@oshinomeme6687 3 жыл бұрын
@@PandemoniumGameDev changed the dialogueFinished to static and it works :3 hope this will not have any problems in the future
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@oshinomeme6687 time will tell :D but you're probably not be able to make multiple NPC's now because dialogueFinished will be shared between them.
@oshinomeme6687
@oshinomeme6687 3 жыл бұрын
@@PandemoniumGameDev damn you are right.. Well i need to look for a other way then..
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@oshinomeme6687 You can try PlayerPrefs, and save the name of the character and the status of his/her dialogue. It will be a bit tedious though
@robertoh.d8901
@robertoh.d8901 3 жыл бұрын
Does this work for 3D? My problem is that when I start playing, the dialogue pops out right away, the SFX work correctly as well as the animation. But when I press E on an NPC, it only shows my second dialogue line and doesn't include the sound nor the animation.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Disable the dialogue object if you don't want it to pop up right away. Can't tell you the exact solution for the other stuff, have to see the code and the project.
@xSkullzGx
@xSkullzGx 10 ай бұрын
Has there been a solution to this problem?
@Vmwvi1
@Vmwvi1 3 жыл бұрын
For some reason the sprite is only showing up in the "Scene" and not the "Game" screen. I think it's an issue with the GameObject since even when I don't attach anything but the renderer the same thing happens. How would I fix this?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
I believe it could be because of the position of the camera or the sprite object. If you don't manage to figure it out DM me on Discord with more details.
@Vmwvi1
@Vmwvi1 3 жыл бұрын
@@PandemoniumGameDev It was an issue with the location of the sprite. I ended up just using the z value to put it ahead of the background. Thanks for the help.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@Vmwvi1 yeah, that can happen often. you can use separate layers to prevent that
@buu6796
@buu6796 3 жыл бұрын
Part3 please for converting the text to text metch pro + making player choices
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
To convert Text to TextMeshPro just change the variable types. Player choises are gonna be a pain in the butt currently but I'll give it a shot.
@bisutowastaken
@bisutowastaken 2 жыл бұрын
MY first dialogue line doesnt show but the rest does after it. Also getting this problem. NullReferenceException: Object reference not set to an instance of an object DialogueSystem.DialogueBaseClass+d__4.MoveNext () (at Assets/Scripts/DialogueSystem/DialogueBaseClass.cs:19) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) DialogueSystem.DialogueLine:OnEnable() (at Assets/Scripts/DialogueSystem/DialogueLine.cs:45)
@iceee
@iceee Жыл бұрын
do you solve it?
@spr1ngles
@spr1ngles 2 жыл бұрын
hi! for some reason, when I go back to interact the second time, the textbox doesn't show up?
@spr1ngles
@spr1ngles 2 жыл бұрын
oop okay I sorted that as I accidentally made it so it deactivated the whole canvas instead of the DialogueHolder. now I got a new issue where after the second time I interact, it repeats the 2nd to last dialogue instead of the last and the dialogue doesn't close after
@kittyherobrine
@kittyherobrine 3 жыл бұрын
Do you know of any way to have multiple NPCs who all use their own dialogue lines?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Yeah, this system already works for that. Just duplicate the dialogue holder, change the dialogue lines and assign the new dialogue holder to the new NPC you created.
@kittyherobrine
@kittyherobrine 3 жыл бұрын
@@PandemoniumGameDev Alrighty, thanks. I got it to work but for some reason, one of my NPCs didn't load it even though everything was identical. I fixed it by just duplicating one that was already working and just changed the Sprite Renderer and animations.
@Vmwvi1
@Vmwvi1 2 жыл бұрын
I have a problem where the normal dialogue works fine on its own, but when using the NPC controller script it only activates the box. How would I fix this? I also get the message below when I try to interact with the NPC but idk if it's relevant. NullReferenceException: Object reference not set to an instance of an object DialogueSystem.DialogueBaseClass+d__4.MoveNext () (at Assets/Scripts/Dialogue System/DialogueBaseClass.cs:13) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
It's relevant for sure, it's preventing the dialogue from opening. Did you assign the DialogueHolder object on the NPC?
@Vmwvi1
@Vmwvi1 2 жыл бұрын
@@PandemoniumGameDev I put the DialogueHolder in the Serialized field called Dialogue so unless there was somewhere else where the Dialogue holder was needed, yes.
@Vmwvi1
@Vmwvi1 2 жыл бұрын
@@PandemoniumGameDev I also checked the NPC controller script and they look the same.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@Vmwvi1 Sounds weird but I don't have enough details, DM me on discord and send me a video?
@confusedsnail6457
@confusedsnail6457 3 жыл бұрын
it works perfectly but sometimes when i walk up to it again it doesn't play each letter at a time for the first line
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Hm interesting, you sure you haven't pressed they key that skips the dialogue accidentaly?
@confusedsnail6457
@confusedsnail6457 3 жыл бұрын
@@PandemoniumGameDev sorry to keep bothering you but i fixed the problem by changing the button but if i press that button the other button stops working
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@confusedsnail6457 no problem, can you describe the problem? I don't exactly get it.
@confusedsnail6457
@confusedsnail6457 3 жыл бұрын
@@PandemoniumGameDev i set it so that the z key is the button you use and the x key skips to the end of the dialogue line. BUT if i press x then z stops working
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@confusedsnail6457 yes, that's true. To make it work change the Update in DialogueLine.cs to be like this: private void Update() { //Skip line if (Input.GetKeyDown(KeyCode.X)) { if (textHolder.text != input) { StopCoroutine(lineAppear); textHolder.text = input; lineAppear = null; } } //Next line if (Input.GetKeyDown(KeyCode.F)) { if (lineAppear == null) finished = true; } }
@Moomit
@Moomit 3 жыл бұрын
I have a problem, if I trigger the dialogue it shows the image, plays the sound but the text is not drawn. To avoid errors I imported scripts from the drive and created the canvas following every step from the example but it still does not work
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
So you don't have any errors and the sounds are played on each letter but you just can't see the text?
@Moomit
@Moomit 3 жыл бұрын
@@PandemoniumGameDev Yes. I also tried to check if the text field if not warped somewhere else but it's where it should be and I can see the text being typed in the inspector and the sound is played, but no text is displayed.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@Moomit can you please check if the text field is being modified in the inspector? I mean it may not show up on the screen but the text could still function
@Moomit
@Moomit 3 жыл бұрын
@@PandemoniumGameDev The text is typed out in the Inspector when I activate the dialogue.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@Moomit awesome, means it's just a rendering or layer issue. Check the color on your text component, mainly the opacity or if it's white on white background. If that's not the problem see if your image is not on top of the text, change their order in the hierarchy if that's the case.
@JumpyMC
@JumpyMC 3 жыл бұрын
my dialogue plays right when i start instead of waiting for the npc interaction. how can i fix this?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you probably forgot to deactivate the dialogue holder object like at 2:40
@JumpyMC
@JumpyMC 3 жыл бұрын
@@PandemoniumGameDev yep i did. thanks so much for the reply
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@JumpyMC you're very welcome :)
@BlackBlade2938
@BlackBlade2938 3 жыл бұрын
How do you leave a like more than once?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Just stay tuned for other helpful tutorials coming up :D that's all I want
@setysssty1845
@setysssty1845 3 жыл бұрын
When ı start restart codes and push e skip the text and try to start again repeat last text why?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Can you describe the situation better? I don't get it
@setysssty1845
@setysssty1845 3 жыл бұрын
@@PandemoniumGameDev ı fixed np:) thx for help
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@setysssty1845 awesome :)
@caelo2392
@caelo2392 3 жыл бұрын
Uh... restarting dialogue isnt working for me.. EDIT: nevermind i fixed it
@juneha
@juneha 2 жыл бұрын
Do you remember how you fixed this?
@Brick69
@Brick69 3 жыл бұрын
part 3 please
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
what do you want to see in part 3?
@Brick69
@Brick69 3 жыл бұрын
@@PandemoniumGameDev idk, basically making a map or some mini story to complete
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@Brick69 oh, that's not the same series then. Might make a separate game with a mini-series on that
@teho2344
@teho2344 3 жыл бұрын
Can you give a link for Dive? Please
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Sure thing: play.google.com/store/apps/details?id=com.PandemoniumGames.DiveFinal It's only available for Android unfortunately
@teho2344
@teho2344 3 жыл бұрын
@@PandemoniumGameDev I use Android
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@teho2344 thanks for playing it :)
@teho2344
@teho2344 3 жыл бұрын
@@PandemoniumGameDev can you remove ads? I leave you a recenzion on google play, sorry if i have a bad english
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@teho2344 You get an ad every 5 games or so, that's very very few. Does that bother you?
@user-zr2dx4qt3s
@user-zr2dx4qt3s 2 жыл бұрын
Tnx from Ukraine
@ouo8913
@ouo8913 3 жыл бұрын
Hey how i can multiple lines in one DialogueLine? I can only write a single line
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
it is possible if you use an array, it would've been better that way actually but you'll need to change the code slightly.
@anasrawf8226
@anasrawf8226 2 жыл бұрын
Sccamer
Undertale DIALOGUE|CUTSCENE in Unity (Episode 1)
16:33
Pandemonium
Рет қаралды 62 М.
How to make a Dialogue System with Choices in Unity2D | Unity + Ink tutorial
29:45
Shaped by Rain Studios
Рет қаралды 130 М.
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 1,1 МЛН
I Made the Same Game in 9 Engines
16:12
Emeral
Рет қаралды 260 М.
UNITY 2D NPC DIALOGUE SYSTEM TUTORIAL
7:52
diving_squid
Рет қаралды 47 М.
How to Make Cutscenes with Timeline -UNITY TUTORIAL-
7:51
The Code Anvil
Рет қаралды 74 М.
How to make a Dialogue System in Unity
16:19
Brackeys
Рет қаралды 908 М.
5 Minute DIALOGUE SYSTEM in UNITY Tutorial
5:11
BMo
Рет қаралды 144 М.
Simple Dialogue System (with Portraits and Name Plates)
14:48
Night Run Studio
Рет қаралды 3,3 М.
Interactive Cutscenes with Branching Dialogues - Legacy Devlog #7
4:05
Top down передвижение в Unity
14:42
GDev Academy
Рет қаралды 83 М.
LEVEL/CAR/WEAPON Selection with Unity Scriptable Objects
28:49
Pandemonium
Рет қаралды 22 М.
REAL TEACHER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
0:13
Frog Prince Rush With Herobrine and Entity
0:32
Realistic Craft
Рет қаралды 50 МЛН
Piper 1v3 in duel (mutation) 🥵🔥
0:35
Tufa
Рет қаралды 4,1 МЛН
ВЕРИТ ЛИ ТИГРА БУЛЛИ?
0:32
Pimpochka Games
Рет қаралды 2,6 МЛН
КАК ХОДИТЬ ПО ЛАВЕ В МАЙНКРАФТ🔥
0:30
ШОРТЫ ВЛАДУСА
Рет қаралды 2,9 МЛН
#pomni #angela
0:13
My Angela2
Рет қаралды 11 МЛН