On Fri, Sep 5, 2008 at 1:09 PM, dexters <[EMAIL PROTECTED]> wrote:
> does one of you know if it is possible to change the Hue/Color of a
> loaded image? I am asking for two reasons:
I'm not sure about this, but I think you would find this sort of thing
on pyglet's documentation, since the image classes are actually from
pyglet and not cocos.
> 2. I would like to highlight sprites that are 'activatable' at a
> certaint point in time, by highlighting them.
I did this on a puzzle game by drawing a "cursor" sprite over my
selected objects. To make it easier for the highlight to follow the
highlighted sprite I added it as a child. Something like this:
highlight = Sprite('highlight.png')
my_sprite.add(highlight)
And then, to turn it off:
my_sprite.remove(highlight)
In this case you would have to keep a reference to the highlight to
remove it later. If you have the svn trunk version you should have no
problems doing it by name too:
my_sprite.add(Sprite('highlight.png'), name='hl')
and remove with:
my_sprite.remove('hl')
--
Kao Cardoso Félix
Página pessoal: http://www.inf.ufrgs.br/~kcfelix
Blog: http://kaofelix.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---