Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Game Development without Coding

You're reading from   Hands-On Game Development without Coding Create 2D and 3D games with Visual Scripting in Unity

Arrow left icon
Product type Paperback
Published in Nov 2018
Publisher Packt
ISBN-13 9781789538335
Length 430 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Lucas Bertolini Lucas Bertolini
Author Profile Icon Lucas Bertolini
Lucas Bertolini
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Game Design - Introduction FREE CHAPTER 2. User Interface - Layouts and Shortcuts 3. Basic Concepts - Variables and Components 4. Getting Started - Object Placement 5. Object Behaviors - Adding Logic to Objects 6. Player Character - Components and Behaviors 7. Interactable Objects - Enhancing Interaction 8. Playing with Visual and Sound Effects 9. Enemy Logic - Basic AI 10. Enemy Components and Behaviors 11. A Bigger Challenge - The Boss 12. UI Interaction - Menu and Button Feedback 13. Gameplay HUD - Player UI and Dialog Box 14. Project End - Platform Selection and Building 15. Other Books You May Enjoy

Dialog boxes

Dialog boxes will be our most common and direct way of communicating with the player. These UI elements provided by the 2D and 3D Game Kit will let us show text dialog, as we can see in the following screenshot:

This is the first example, where the dialog is used to explain the basic controls:

In this case, the character is trying to let us know how to jump down off platforms.

We will notice that both times the dialog box opened, we were in contact with one of the following posts:

We can find this as a prefab, called InfoPost, in the folder at Assets | 2DGameKit | Prefabs | Interactables if we are working on the 2D Game Kit. If we are working on the 3D Game Kit, the prefab will be in the same folder, under the name InfoZone.

In this case, when we enter this invisible zone, he dialog will be shown:

We will find this example in the Level1 scene of the 3D Game Kit...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image