Book Image

Building a Game with Unity and Blender

Book Image

Building a Game with Unity and Blender

Overview of this book

In the wake of the indie game development scene, game development tools are no longer luxury items costing up to millions of dollars but are now affordable by smaller teams or even individual developers. Among these cutting-edge applications, Blender and Unity stand out from the crowd as a powerful combination that allows small-to-no budget indie developers or hobbyists alike to develop games that they have always dreamt of creating. Starting from the beginning, this book will cover designing the game concept, constructing the gameplay, creating the characters and environment, implementing game logic and basic artificial intelligence, and finally deploying the game for others to play. By sequentially working through the steps in each chapter, you will quickly master the skills required to develop your dream game from scratch.
Table of Contents (16 chapters)
Building a Game with Unity and Blender
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Torch fire


Next, we will learn how to create a more sophisticated particle by using a texture sheet. For this example, we will be creating a torch and a particle system that will be used as the torch fire. Again, we will create an empty game object and apply a new particle system to it. Then, we will set the settings in the Main module:

  • Duration: 1

  • Looping: Enable

  • Start Lifetime: 1

  • Start Speed: 0

  • Start Size: 2

  • Max Particles: 1

Then, set the emission rate to 1. In this case, we only need one single particle to be spawned by the particle system and kept alive until the animation has finished playing.

Next, we will create a new material and apply the following texture to the material:

After that, let's get back to the particle system again, and set the shader type of the material to Particles/Additive. After that, enable the Texture Sheet Animation module and set the Tiles setting to:

  • X: 8

  • Y: 4

You can easily get this number by looking at how many columns and rows of frames there are on...