Wednesday 15 January 2014

ios - Incompatible pointer types error LHSprite -



ios - Incompatible pointer types error LHSprite -

getting incompatible pointer types initializing 'lhsprite ' look of type 'sknode' in line of code.

lhsprite* player = [self childnodewithname:@"explosion"];

the error pretty much self explanatory. [self childnodewithname:@"explosion"] returns object of type sknode, , you're trying jam object of type lhsprite.

ios objective-c xcode6

No comments:

Post a Comment