Hello All!
Being an uber-noob with cocos2d and Obj-C in general, I'm having a problem getting a joystick control to work for me.
After throwing some of my own franken-code around for a while, I did find slipter216's joystick code from Splat laying around and tried to implement that.
( http://www.mailinglistarchive.com/cocos2d-iphone-discuss@googlegroups.com/msg01054.html )
I'm sure I'm just being an idiot, but the overall framework of WHERE to implement all of this is driving me a little nuts. I've been trying to just add my player sprite and joystick object to the game Scene in a similar manner to what was shown in the TouchesTest Pong-type example found in the Cocos2d 0.8 folder.
WHERE to put the actual Touch event handling is confusing me. The Joystick class (along with slipsters Vector class) handles the base logic of the touch handling, but translating and passing those calculations to the player sprite has been my hangup.
Should this be added to EACH game Scene (which seems wasteful), or passed somehow into the player class?
Thanks in advance!