objective c - Ignoring transparency for animated sprites -
i using cgpath in order ignore transparency sprites so:
path = cgpathcreatemutable(); cgpathmovetopoint(path, null, endpoint-x, endpoint-y); cgpathaddlinetopoint(path, null, 0, 250);..... cgpathaddlinetopoint(path, null, 50, 0); cgpathclosesubpath(path);
this works 1 sprite per path. problem is, sprites animated makes utilize of multiple sprites different vertices (points). question is, best way ignore transparency animated(multiple) sprites? told can utilize per frame way tedious there might easier this.
just additional info, i've tried pixel perfect collision didn't work me. please help.
objective-c cocos2d-iphone
No comments:
Post a Comment