iphone - Animate individual tiles in tile map -
i working on cocos2d game use tile maps. need change opacity of individual tile. used following code,
ccsprite *sprite = [metalayer tileat:tilepos]; ccfadein* fadeout = [ccfadein actionwithduration:2]; [sprite runaction:[ccsequence actions:fadeout, nil]];
when run code animation effect tiles use texture. need handle individual tiles using coordinate. there solution problem in tile maps.
Comments
Post a Comment