Get Updates By E-mail 

Article Written By:
Johann Dowa

Tutorial: Dynamically Coloring Art In Cocos2D – Turn One Game Character Into Hundreds

  •  
  •  
  •  
  •  
  •  

I remember the very first time I tried out the Cocos2D game engine for the iPhone.  This was less than a year after the app store had been opened, and I was very impressed by the demo projects that came with the engine.  A couple of the features features that I really liked were those that allowed you to manipulate sprites in both shape and coloring.

I’ve come across a tutorial that demonstrates how to use the setColor method of CCSprite taking one character and effectively turning it into hundreds of different characters.  Not too complicated, but an incredibly cool effect that can save a lot of time.

Here’s a screenshot showing one white game character colored to look like many different characters:

If you are interested in some in-depth Cocos2D game development training please take this survey.

I will be getting together with a successful Cocos2D expert and putting together a comprehensive training course.

We will be giving out some free copies to those who fill in the survey. You can get to the survey by clicking here.

The tutorial is from Brandon Trebitowski and can be found here:
Dynamically Coloring Sprites

Brandon also shows you how to make those cute bitizens used as characters in his tutorial Creating and Customizing A Bitizen.

Some good tips if you are wondering how you can populate a game with unique characters.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments