sprite kit - SpriteKit - method similar to getChildByName/getChildByTag in Cocos2d -
now started porting game cocos2d sprite-kit cocos2d not offers box2d physics , new version of cocos2d 3.0 has less features.
got struct place while porting sprite-kit. there way child node parent in spritekit ?
(ccsprite *)[self getchildbytag:2022]; //cocos2d syntax
how can achieve in sprite-kit ?
see apple documentation on sknode:
– enumeratechildnodeswithname:usingblock:
also see sknode's userdata property.
Comments
Post a Comment