Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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!

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

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];
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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