Hi, I wish that when I click on a button, the line of life decreases by 25%. how can I make using xcode, cocos2d and spritebuilder.
your question is too generic
are you using a sprite?
you can scale it
Yes, I am using is a sprite
I would also like that decreases not only the x and the y.`
I think you meant to say:
"I would also like it if only the X decreased, but not the Y"
you, sorry I meant:
I would also like it if only the X decreased, but not the Y
Thank you, the code is perfect.
I want to know something else: how can I decrease it only from the right but not the left.
You have to set sprite's anchorPoint as follow: sprite.anchorPoint = ccp(0, 0.5);
sorry you can go look at these other two of my post