Could someone please refer me to the documentation regarding onTouchBegan and onTouchMoved
I want to read more and find out how to implement multi-touches and the method for holding not tabbing. I searched Cocos Creator API and Cocos2d-j and couldn’t find anything.
Thank you.
what are you looking for? http://cocos2d-x.org/docs/programmers-guide/8/index.html
Yes, but it doesn’t say what other types are there aside from:
event: cc.EventListener.TOUCH_ONE_BY_ONE,
I need holding instead of tabbing, and multi-touch. This info should be in the Touch section, and the Event section should be more comprehensive about eventListener functions.
ok. Good point. Loot at TouchesMoved (notice the ‘s’) and for multi-touch on iOS you can change it in AppController.mm. For Android, I am not sure, perhaps it is on by default.
Don’t forget to search the forums: it have a very nice search feature which is quite usefull.
If you search for onTouchBegan or just touch, you’ll find plenty of posts.
And, of course, the always updated ultimate documentation: file cocos2d-js.js
It contain more than API’s doc, it is the API: we are lucky to have the full source code of the API we use, just take advantage of it ![]()
–
Daniel