0
\$\begingroup\$

How do i set the image/texture of an LHSprite that is loaded into xCode using levelHelper & spriteHelper?

I am using sprite sheets. So i tried to load the image the old fashioned way using CCSpriteFrameCache, but unfortunately it isnt recognizing the .pshs file :( Any Help would be great!

\$\endgroup\$
0
\$\begingroup\$

I have figured it out, I just added another animation which consists of 1 frame, then when i need it, i play the animation:

[mySprite stopAnimation]; //Stops CurrentAnimation
[mySprite prepareAnimationNamed:@"jumpAnimation" fromSHScene:@"Jungle"];
[mySprite playAnimation];
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.