Hello.
I'm not sure where to ask this. Classes in Obj-C are really messing with my head. I have made some simple classes which place balls on the screen, you pass through a radius, location etc. So I have basic classes working.
However, I'm stumbling now. I want to take all the code for my Chipmunk/Spacemanager player and sub class it all. I cannot figure out things like placing my chipmunk body/cpCCSprite into my Spacemanager shape, which is declared in the main classes init method. If I try to pass it through as a string, that compiles but doesn't work.
So, does anyone have a basic example of say a simple ball class which uses Chipmunk? Or, as I'm happy to read can anyone suggest a good place to learn about making my own methods in Obj-C? I've read the primer, I've gone through the relevant bits in Cocoa Programming for OSX and watched some videos on Youtube, but no joy. Basic classes are fine, but anything slightly more complex and it all goes horribly wrong.
They say the best way to learn is to start a project with many problems, and work through them one at a time. I agree, I've learned so much from making my little game. Thank you to all the people who've helped so far. Almost there. :)