tags:

views:

49

answers:

1

hello,

How do i get Continuous touch event on button in cocos2d. Is there any method or properties for that? I don't want to touch multiple time just touch the button work smooth.

Thank You.

A: 
  1. On touch-begin event (set a boolean variable called touched to true).

  2. On touch-move event (if touched is true, then do whatever u want for the continuous processing you want to do).

  3. On touch-event event (set touched variable to false, and stop whatever continues processing you were doing).

AlvinfromDiaspar