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:

– childnodewithname:

– enumeratechildnodeswithname:usingblock:

also see sknode's userdata property.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -