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
Building a Game with Unity and Blender

You're reading from   Building a Game with Unity and Blender Learn how to build a complete 3D game using the industry-leading Unity game development engine and Blender, the graphics software that gives life to your ideas

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher
ISBN-13 9781785282140
Length 250 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. Creating Your Game Concept 2. Creating Characters FREE CHAPTER 3. Animating Your Characters 4. Creating the Environment 5. Integrating Your Assets into the Game 6. Developing the Game Structure 7. Creating Levels and Game Progression 8. Post-Production and Visual FX 9. Deploying the Game 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...

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