Hello

Thanks for all of your responses.

After Claudio first response, I have implemented a solution which is very 
similar to Ivo's one, excepted I recreate the layer each time the life 
points change, to allow its width to change.
It works, and will certainly be enough for this game, but I feel it's a bit 
limited (and I don't even talk of the cost of the solution, which implies 
to create a new object each time points change).
By example I can't use a gradient as a background color for my lifebar, and 
crop it as the life points decrease.

I will have a look on Claudio second proposal, but it seems more 
complicated for a Cocos2d/OpenGL newbie as me.



-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/cocos-discuss/-/W1ATvkql8TUJ.
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.

Reply via email to