ios - bodyWithBodies SKPhysicsBody -


Apple's documentation is unclear when it explains how to implement this class method effectively < Pre> + (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

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

  - (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.   

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.

  NSArray * arrays = [[Self Platform Burs ] Copy]; Instead of   

  NSArray * arrays = [self-styled];   

Because [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];   

should be

  NSMutableArray * mArray = [NSMutableArray new]; (For arrays in SKSpriteNode * anySpriteNode) {[mArray addObject: anySpriteNode.physicsBody]; } Node.physicsBody = [SKPhysicsBody bodyWithBodies: mArray.copy];    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -