Hi every one , i am very new to cocos2d
i what to know how can i remove the sprite when its move to position lets say (150 X 200). i search everywhere i didn't find any answer.
A fast, easy to use, free, and community supported 2D game engine
Hi every one , i am very new to cocos2d
i what to know how can i remove the sprite when its move to position lets say (150 X 200). i search everywhere i didn't find any answer.
@prasantha60 :
Well, there is no special concept or functionalities in cocos2d as well as i know..
You will have to set scheduler.. wich checks the position of sprites and if it is outside the range remove it..
Perhaps you can utilize CGRectContainsPoint or CGRectIntersectsRect in your game loop to calculate if your sprite position or rect intersects a rect where your sprite should be removed
You must log in to post.