Book Image

Unity Game Development Blueprints

By : John P. Doran
Book Image

Unity Game Development Blueprints

By: John P. Doran

Overview of this book

Table of Contents (16 chapters)
Unity Game Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Challenges


For those of you who want to do more with this project, there are still plenty of things you can do, especially after finishing the rest of this book. Here are some ideas to get you thinking:

  • Right now, the enemy will continue following you even if you're through a tree or a wall. Use the Raycast function we talked about in Chapter 3, Side-scrolling Platformer, to check a line from the player when the enemy collides with something. If it does, then set the enemy's state to Idle.

  • If you're interested in adding in more complex AI behavior to your ghost, such as pathfinding, you can check out Unity 4.x Game AI Programming, Aung Sithu Kyaw, Clifford Peters, and Thet Naing Swe, Packt Publishing.

  • Add sound effects to the ghost character so that the player knows when they are coming closer to the player, and add some tension to the game. Adding in other sound effects, such as those for taking a picture and walking around, can help create ambience as well. A good website to visit for sound...