I am experimenting with SpriteKite and it does a great job with touch events. How can I implement a shake event? I assume that I will incorrectly set the first responder inside the scene / when the scene is presented.
in SKScene, which is never called.
-(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (event.subtype == UIEventSubtypeMotionShake ) {
[self shakeEvent];
}
}
Thank you in advance
kboda source
share