0

I have been (trying to) porting a bullet engine over to another game code for some time now. One of my hiccups is that fact that the character isn't firing the bullet, despite my best efforts. I have a Bullet class and a BulletCache class.

One of my big question relates to the use of the method:

-(id) initWithBulletImage
{
    // Uses the Texture Atlas now.
    if ((self = [super initWithSpriteFrameName:@"bullet1big e0000.png"]))
    {
    }

    return self;
}

This method is supposed to use the Zwoptex texture pack: however, my bullet texture pack features 8 bullets facing in 8 different directions, and it is its own texture pack; the game came pre-loaded with other item Packs and they are all in the same texture; mine isn't. I have bullet1big.plist file as well, but I am stumped where I need to go from here. Do I need to instead call a CCAnimation method to call the texture of bullets (so that it knows which bullet to fire in each direction?)

GPP
  • 2,157
  • 3
  • 18
  • 26
  • If you open bullet1big.plist, can you find an entry called "bullet1big e0000.png"? – jrtc27 Jan 05 '12 at 17:31
  • @jrtc27 yes it is the first entry. Right now, I suppose that would appear to fire off, even if the Player sprite was facing West, the east image would fire off. I have so many questions on the appropriate way to fix this, but I feel like it'd just avalanche SO. – GPP Jan 05 '12 at 18:43

0 Answers0