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
Cocos2d Game Development Essentials

You're reading from   Cocos2d Game Development Essentials For new users - a quickstart guide to bringing your mobile game ideas to life with Cocos2D

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784390327
Length 136 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ben Trengrove Ben Trengrove
Author Profile Icon Ben Trengrove
Ben Trengrove
Arrow right icon
View More author details
Toc

Particle systems

A great item of polish that could be added to your game is a particle system. Particle systems can be designed right in SpriteBuilder with the fully featured particle system editor. If you are unsure of what a particle system is, then the best way to learn is by having a look.

In your Flappy Bird project, create a new file. Select Particles and name it FlapParticles.

Particle systems

You should see a new file open up with what looks like a flame in the center of the screen:

Particle systems

This is a particle system. Particle systems allow the spawning of many small sprites that behave in defined ways. You can set many property ranges and each particle that is spawned will be randomly assigned a value in that range. This allows for the creation of some really great effects. The best thing about creating particle systems in SpriteBuilder is that you can see the changes straightaway. This allows for great fine tuning of the effect.

The following are the properties you can edit and their effects:

Property

Effect...

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