How can I limit the touch action on a sprite so it cannot be repeated ad infinitum unless a specific time has elapsed?
thanks in advance as always :-)
-alex
touch action repetition
(2 posts) (2 voices)-
Posted 2 years ago #
-
Thats not built in to cocos. Subclass Sprite. And in your subclass have a member variable that keeps the time of the previous touch event - and only respond to new touch events if enough time has passed. You have to write this functionality yourself.
Posted 2 years ago #
Reply
You must log in to post.