Here is my problem. The goal is to make a scale, that fills out while the char collects the food. I got 2 sprites: the scale without the filling and the filling itself. So my question is simple: how to draw a part of the filling sprite depending on the number of "apples" eaten? =)
I solved a similar problem for a loading bar some time ago, using
glScissor
. Basically I extendedCCSprite
with a float indicating the filled portion, and overrodevisit
method like this.-Hope it helps.