ios - bodyWithBodies SKPhysicsBody -
Apple's documentation is unclear when it explains how to implement this class method effectively < Pre> 2014-04-23 23: 25: 21.520 Space Monkey [33 9 8: 60b] * Cancellation of API due to exception exception 'NSINID IDA Agreement Exception', reason: '[[SK Printnode_shops] : 0x15d79c50 '* sent to unrecognized selector for example first throwing call stack: (0x2d92ef03 0x380c3ce7 0x2d932837 0x2d931 12f ... this is throwing an exception and I've been doing a lot of research everywhere with any luck. There is another question about the same problem here, though the suggestions do not seem to work on everything. I have provided the code so that some light is highlighted for somebody and hopefully I have the code right here ... Here is the code I hope that I have enough details and a snippet of my code, so hopefully someone will help me and others will also come. Thank you very much. Because should be + (SKFishix body *) Body with bodies: (NSARRA *) body; // I think the error is 2014-04-23 23: 25: 21.518 space monkey [33 9 8: 60b] - [ssprintnode_shops]: 0x15d79c50 sent to the unknown selector, for example
- (NSMutableArray *) platformBars {NSMutableArray * array = [[ NSMutableArray alloc] init]; // _ spriteNode in the form of a frequency variable _spriteNode = [SKSpriteNode node] Declared Rfes; For (int i = 0; i & lt; 5; I ++) {_spriteNode = [SKSpriteNode spriteNodeWithImage Nominated: @ "Water Block"]; _spriteNode.physicsBody.mass = 10.0f; _spriteNode.physicsBody.density = _spriteNode.size.height; _spriteNode.position = CP pointmake (X, _spriteNode.position.y); X = X + 40; [Array addObject: _spriteNode]; } Return array; } - Create (Platform node *) Platytatation: (CG point) status {NSArray * arrays = [auto-platform]; PlatformNode * node = [PlatformNode node]; Node.physicsBody = [SKPhysicsBody bodyWithBodies: arrays]; (For SKNode in SKSpriteNode * arrnays) {[node addChild: sknode]; } Node.position = Status; Node.name = @ "forum"; Node.physicsBody.affectedByGravity = No; NSLog (@ "Bodyoff Size% F", [Node calculated frame]. Size.width); Return node; } - Create (Platform node *) PlatytesEptition: The position of (CGPOTE) is done in- (zero). To see the body of the Mouthwayview (SKVUI) function.
NSArray * arrays = [[Self Platform Burs ] Copy]; Instead of
NSArray * arrays = [self-styled];
[self platformbar] unstable array and
arrays is irreversible. Edit
And, if the BTW array has SKSpriteNode s, then there is no physics body
node. PhysicsBody = [SKFixics body bodywidth: erase];
NSMutableArray * mArray = [NSMutableArray new]; (For arrays in SKSpriteNode * anySpriteNode) {[mArray addObject: anySpriteNode.physicsBody]; } Node.physicsBody = [SKPhysicsBody bodyWithBodies: mArray.copy];
Comments
Post a Comment