V.V
V.V

Reputation: 3094

how to create button in cocos2d?

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.

Upvotes: 3

Views: 2752

Answers (2)

V.V
V.V

Reputation: 3094

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.

Upvotes: 5

Rob Segal
Rob Segal

Reputation: 7625

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.

Upvotes: 2

Related Questions