Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6851637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:16:21+00:00 2026-05-27T01:16:21+00:00

I have a CCSprite that was created from a png with transparent background. I

  • 0

I have a CCSprite that was created from a png with transparent background.

I want to be able to apply colors to this sprite in a way that I`m free to define which color it is, without the actual color of the sprite affecting the amount of each color I have to add.

I`ve tried this:

mySprite.color = ccc3(200,200,255);

In an attempt to add a little blue-ish feel to my sprite, but as it works by setting the amount of tint that’s gonna be displayed based on existant color of the sprite, and my sprite has virtually no blue in any of it (most of it is yellow) the resulting effect is pretty sketchy, everything gets really dark, and there is one slight blue-ish coloring, but not as I wanted.

The ideal effect for me on this case would be to ADD a light blue mask to it with very low alpha.

Is there an easy way to do that without composing sprites?

I’ve tried using CCTexture2D, but had no luck, as there is no built in method for working with colors, and most tutorials only teach you how to build textures out of image files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:16:21+00:00Added an answer on May 27, 2026 at 1:16 am

    This is deceptively hard to do in code with the original sprite. Another option would be:

    • create a new sprite, which is just a white outline version of your original sprite
    • the color property of this white sprite will now respond exactly to the RGB values you pass in
    • so pass in your light blue value to the white sprite and set the opacity correctly
    • then overlay it on your original sprite

    Any good?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Balloon class (see this ) that inherits from CCSprite . I
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have a class extended from CCSprite that implements CCTargetedTouchDeledate like so: @interface PianoKey
I have a CCSprite that has all its properties modified: rotation, scale, skewX, skewY,
I have a scene created like that: MyScene (subclass of CClayer) .m +(CCScene *)
I'm trying to create a extended CCSprite class that can detect touches. I have
My problem: I have created a parent sprite which rotates forever. I have created
I have a custom subclass of CCSprite and in it I am doing this:
I have a CCLayer class where I create an animated sprite that is the
I have a class called Projectiles which inherits from CCSprite class, Currently there are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.