objective c - SpriteKit physicsBody applyImpulse node fails -
I am trying to create a jump event on touch screen action, but after applying Fails by the bottom of the screen) All things look good with some parameters, but sometimes it happens.
Code:
[Apply self.physicsBody effect: CGVectorMake (dx / mag * kImpuleScale, 20.0f)];
You can put a physics around your screen:
< Code> var borderBody = SKPhysicsBody (edgeLoopFromRect: self.frame) self.physicsBody = borderBodyThen any body "escape"
Comments
Post a Comment