It was never so easy to get YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

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

Follow
Shaped by Rain Studios

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/inkdia...
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.
   • Learn Ink (video game dialogue langua...  

► 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.
   • How to use Unity's Input System  

► INK UNITY INTEGRATION PLUGIN
Here's the asset store link for the Ink Unity Integration plugin.
https://assetstore.unity.com/packages...

► 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.
   • Learn Ink (video game dialogue langua...  

► 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/shapedbyrainstudio...

► GITHUB PROJECT
The '1startingpoint' branch is the projects starting point (with Ink/TMPro installed) and the '2choicesimplemented' branch is the final result by the end of this video.
https://github.com/shapedbyrainstudio...

► MUSIC
The backing music is custom made by @themaykit.
  / themaykit  

► DISCORD
Come ask questions, suggest a video topic, or just hang out!
Discord ➔   / discord  

► THE PATH OF REN
Wishlist 'The Path of Ren' on Steam!
Steam (The Path of Ren) ➔ https://store.steampowered.com/app/16...

► SOCIAL MEDIA LINKS
Follow my current project!
Twitter ➔   / trevermock  
Instagram ➔   / trevermock  
TikTok ➔   / 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=110...
☕ Buy me a coffee! (Kofi) ➔ https://kofi.com/shapedbyrainstudios

#gamedev #unity2d #unity

posted by me10i841