Continuous touch event on button in cocos2d
How do i get Continuous touch event on button in cocos2d. Is there an开发者_C百科y method or properties for that? I don't want to touch multiple time just touch the button work smooth.
Thank You.
On touch-begin event (set a boolean variable called touched to true).
On touch-move event (if touched is true, then do whatever u want for the continuous processing you want to do).
On touch-event event (set touched variable to false, and stop whatever continues processing you were doing).
精彩评论