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

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -