I'm using Sneakyinput for the virtual joysticks. You can download it from here:
https://github.com/sneakyness/SneakyInput
There's a tutorial on using SneakyInput here:
http://www.qcmat.com/sneakyinput-joystick-dpad-and-buttons-for-cocos2d/
I actually used a tutorial app as well, but I can't find where I downloaded it from!
Watch out, as there are two different versions - one for Cocos2d 0.99 and one for 2.0.
Remember, you'll need to enable multi-touch in your app delegate if you want more than one input:
[glView setMultipleTouchEnabled:YES];
No comments:
Post a Comment