Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering Unity 2D game development
  • Toc
  • feedback
Mastering Unity 2D game development

Mastering Unity 2D game development

By : Jackson
3.8 (21)
close
Mastering Unity 2D game development

Mastering Unity 2D game development

3.8 (21)
By: Jackson

Overview of this book

If you have C# knowledge but now want to become truly confident in creating fully functional 2D RPG games with Unity, then this book will show you everything you need to know.
Table of Contents (15 chapters)
close
Free Chapter
1
1. Overview
14
Index

Putting it all together


Right, after all of that "brain input", let's start applying it to our game. In this chapter, we are aiming to add an NPC or two, give them something to talk about, and maybe add some special reactions.

If you haven't done so already, import the other character sprites and set up their animations as well. You can either add them to the scene or just create some prefabs in your Project view:

I've added the following characters (shown in the preceding screenshot):

  • Greandal (left): This character is the local barkeeper and mayor of our lone village

  • Olaf (right): This character is your hero's best friend and an all-round troublemaker

  • Greybeard (center): This character is the strange wizard from the east

With these characters in place, we need to start adding some character to our NPCs as well as add our hero. In Chapter 2, Character Building, we outlined some classes to describe and manage the entities in the game, so let's bring them in now.

We could also do with a little tidying...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete