Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7129393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:14:17+00:00 2026-05-28T11:14:17+00:00

I am working on getting a Bullet engine integrated with the rest of a

  • 0

I am working on getting a Bullet engine integrated with the rest of a game code.

This consists of making the Player class able to call methods from the BulletCache class without crashing the program (the error reads ‘unrecognized selector sent to instance…’).

My attempt at integration so far consists of creating a BulletCache object in the Player class’ interface e.g.:

@interface Player : LevelObject
{
BulletCache *bulletCache;
}

But I believed a constructor was needed to further link the two classes. neither classes are immediately related (the Player class is a subclass of several classes,although ultimately a subclass of CCNode), although both are subclasses of CCNode

Could anyone give me any further tips on how to further link the two classes, so the Player class methods can call the BulletCache’s methods?

edit: Because I was getting an infinite loop, and the console kept reporting a CCSprite related error in the BulletCache class, I put a breakpoint next to the BulletCache method:

CCSpriteFrame* bulletFrame = [[CCSpriteFrameCache sharedSpriteFrameCache] 
spriteFrameByName:@"bullet1big e0000.png"];

And ran “Build & Debug.” Upon clicking the ‘New Game’ button on the mainMenu, the console displayed the loading logs, and then it promptly stopped, the bottom of the console displaying the message:
“GDB: Stopped at breakpoint 1 (hit count: 1) ‘-init-Line 84’ Line 84 is where I put my breakpoint, so it looks like the program is having issues with this code. But it doesn’t look incorrect, and the methods should match–I wasn’t getting any ‘Warning: -spriteFrameByName may not respond to CCSpriteFrame’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:14:17+00:00Added an answer on May 28, 2026 at 11:14 am

    make sure you import BulletCache class .
    You also need to initialize the bulletCache in the init method of Player.

    Then any instance method of BulletCache class can be called by

    [bullectCache somemethod]
    

    some method needs to be replaced by method in BulletCache class

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my just-completed project, I was working getting distributed transactions working. We implemented this
Ok I'm working on getting better with python, so I'm not sure this is
I'm interested in getting threading into the small engine I'm working on in my
I am working on getting lucene indexing working on Google App Engine. I am
I have this working and getting data. However, everytime I page it calls the
I'm working on getting some legacy code under unit tests and sometimes the only
I am working on getting a library to build in linux. This builds and
I am working on getting the results of this sql query in LINQ SELECT
I'm working on getting our system's java beans to be able to use the
Ive been working on getting some of my code originally built on the mac

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.