开发者

How to do shake the iPhone using Cocos 2d

开发者 https://www.devze.com 2023-04-09 20:33 出处:网络
I can detect shake in iPhone using Cocos 2D when I use: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration

I can detect shake in iPhone using Cocos 2D when I use:

-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration

Now,开发者_如何学Python I want to do shake the iPhone using Cocos 2D. Who can help me?


In the iOS Simulator, click "Hardware" and in the drop down menu you will see "Shake Gesture"... click that


You cannot physically shake your iPhone using Cocos2d. But if you want to vibrate your phone programatically, check this: Making the iPhone vibrate

0

精彩评论

暂无评论...
验证码 换一张
取 消