What's the easiest way to detect a shake gesture within a CC3World or CC3Layer? Or does the shake gesture have to be detected within a CCLayer, which could then call a method within the CC3World?
Shake gesture in CC3World
(4 posts) (2 voices)-
Posted 3 months ago #
-
No responses? Bill, you seem pretty active in the forums. It might be a simple question but can you point me in the right direction?
Posted 3 months ago # -
You don't detect a shake gesture using cocos2d or cocos3d. You do it through the iOS API and then do something in your game in response to it.
Google is your friend. http://stackoverflow.com/questions/1170917/how-to-use-shake-api-in-iphone-sdk-3-0
Posted 3 months ago # -
Thanks for your help jyoung. The problem I was having was my -(void)accelerometer method wasn't being called, but I figured it out.
Posted 3 months ago #
Reply
You must log in to post.