How to make a Dialogue System with Choices in Unity2D | Unity + Ink tutorial

How to make a Dialogue System with Choices in Unity2D | Unity + Ink tutorial

166.043 Lượt nghe
How to make a Dialogue System with Choices in Unity2D | Unity + Ink tutorial
In this video, I show how to make a dialogue system with choices for a 2D game in Unity. The dialogue system features Ink, which is an open source narrative scripting language for creating video game dialogue that integrates nicely with Unity. Thank you for watching and I hope the video was helpful! 🙂 NOTE ABOUT INPUT HANDLING - If you're trying to imitate the Input system setup used in this video, here are a few things that will hopefully help based on FAQs I've gotten. Best of luck! - The InputManager script I'm using can be found here: https://github.com/trevermock/ink-dialogue-system/blob/8-ink-external-functions-example/Assets/Scripts/Input/InputManager.cs - When setting up the PlayerInput component in the inspector, for the game Events, make sure you drag in the InputManager gameobject and NOT the script. Dragging in the script will result in the corresponding dropdown not showing your methods. - This tutorial very loosely covers Input handling. Player input in Unity is it's own complex topic. If you're struggling with Input in Unity, I highly recommend learning more about how input can be handled in Unity. The Input System resource I put further down in the description of this video is an excellent place to start. ► INK + UNITY TUTORIAL PLAYLIST The full Ink + Unity tutorial playlist that this video is part of can be found here. https://www.youtube.com/watch?v=KSRpcftVyKg&list=PL3viUl9h9k78KsDxXoAzgQ1yRjhm7p8kl ► TIMESTAMPS 0:00 Intro 0:53 How Ink works with Unity 2:01 Dialogue System Design 4:02 Project Setup Overview 5:36 Import TextMeshPro 6:09 Install/Import Ink 6:50 Creating an Ink file 7:50 Creating an NPC 8:52 Triggering Dialogue 11:55 Creating the Dialogue Panel 14:05 Displaying Dialogue 19:15 Freezing the Player 19:59 Stopping the Dialogue Trigger 20:29 Fixing the player jump issue 21:33 Creating the Choices UI 23:22 Code to support Choices 26:10 Ink file with Choices 26:46 Setting a First Selected Choice 27:57 Making a Choice 28:52 Adding new NPC's 29:21 Outro ► NEW INPUT SYSTEM RESOURCE If you're struggling with understanding how Unity's new Input System works, this video by Samyam is one of the best I've seen on the topic. https://www.youtube.com/watch?v=m5WsmlEOFiA ► INK UNITY INTEGRATION PLUGIN Here's the asset store link for the Ink Unity Integration plugin. https://assetstore.unity.com/packages/tools/integration/ink-unity-integration-60055 ► INKLE STUDIOS WEBSITE (to install the Inky editor) Here's a link to Inkle Studios website, where you can install the Inky editor. https://www.inklestudios.com/ink/ ► INK TUTORIAL VIDEO Here's a tutorial for if you're interested in learning more about writing Ink files. https://www.youtube.com/watch?v=KSRpcftVyKg&t=29s ► POKEMON INK FILE EXAMPLE (shown in video) Here's a quick link to the ink file used towards the end of the video. https://github.com/shapedbyrainstudios/ink-dialogue-system/blob/end-of-video/Assets/Dialogue/pokemon.ink ► GITHUB PROJECT The '1-starting-point' branch is the projects starting point (with Ink/TMPro installed) and the '2-choices-implemented' branch is the final result by the end of this video. https://github.com/shapedbyrainstudios/ink-dialogue-system ► MUSIC The backing music is custom made by @themaykit. https://www.instagram.com/themaykit/ ► DISCORD Come ask questions, suggest a video topic, or just hang out! 📱Discord ➔ https://discord.gg/99gcnaHFf9 ► THE PATH OF REN Wishlist The Path of Ren on Steam! 🎮 Steam (The Path of Ren) ➔ https://store.steampowered.com/app/1619920 ► SOCIAL MEDIA LINKS 🐦 Twitter ➔ https://twitter.com/ShapedByRain 📷 Instagram ➔ https://instagram.com/ShapedByRainStudios 🕑 TikTok ➔ https://tiktok.com/@ShapedByRainStudios 🌐 Website ➔ https://ShapedByRainStudios.com ► SUPPORT Any support is much appreciated! I may receive a commission on any assets purchased using the below Unity Asset Store link. 🛍️ Unity Asset Store Affiliate Link ➔ https://assetstore.unity.com/?aid=1100lrxm5 ☕ Buy me a coffee! (Ko-fi) ➔ https://ko-fi.com/ShapedByRainStudios #gamedev #unity2d #unity