How to play button sounds in Cocos2d
If I create a button like this:
CCMenuItemImage *okBtn = [CCMenuItemImage
itemWithNormalImage:@"gameOkBtn.png"
selectedImage:@"gameOkBtnPressed.png"
block:^(id
sender)
{
//actions
}];
How could I play a sound both on press and on release? In regular iOS dev
I can subclass UIButton and add selectors for the UIControl events.
No comments:
Post a Comment