Book Image

Unity 4 Game Development HOTSHOT

By : Jate Wittayabundit
Book Image

Unity 4 Game Development HOTSHOT

By: Jate Wittayabundit

Overview of this book

<p>Immerse yourself in the world of high-end game design by partaking in challenging missions. Start off by working with the Sprite Mode, then learn the basics of creating a UI system for an RPG, and work your way through the game virtually embodying your greatest hero or heroine.</p> <p>Every project is designed to push your Unity skills to the limit and beyond. You will start by creating a 2D platform game with the new 2D sprite feature and move on to the Unity GUI system. Then, you will create a 3D character and make it move. By the end of this book, you will know how to post the player's score to the hi-score board.</p>
Table of Contents (19 chapters)
Unity 4 Game Development HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mission briefing


This project will start with setting up the AI's ragdoll object, which will be used to replace the AI when it dies. Then, we add the script in our AI script to switch the ragdoll object with the AI object. Next, we will create the destroyable wall from four cube objects, which will each have Rigidbody attached. Of course, we will create a script to break the object apart by having a script to check for the colliding object.

Then, we will also create another destructible rock from multiple cubes, which will fall when the player gets close to it. We will create a trigger area, RocksTrigger, and Rock scripts to make the rock fall down when the player enters this trigger area using the delegate and event functions. However, the delegate and event functions are only available for C# users. For Unity JavaScript users, we will create the JSDelegate class to create our custom delegate and event functions.

Why is it awesome?

We already know that in Project 1, Develop a Sprite and Platform...