views:

183

answers:

2

Hi all,

I am new to cocos2d, In that I want to create a button, by touching the same some events should be generated.

But I don't know how to make a button in the same. As well as want to save username also. But I am not able to create a text box even.

If any one know, kindly help to create both of the things.

Thank you in advance.

+1  A: 

Have you looked through the Cocos2D documentation/forums and examples provided in the download package? There are many example apps which use some sort of menu/buttons.

Rob Segal
Thanks buddy, much use full.
iPhone Fun
+1  A: 

If I am not wrong then there is not any method which will create button something like our normal iphone codes.

For cocos2d, making some functions which will work as Buttons, we are suppose to create CCMenuItem. The menu items are the best way to create button and it is easy to be managed.

After a long time I just come to know these things.

iPhone Fun