Hey guys...i have simulator in potrait mode and three yellow baloons i.e 3 sprites (shape elliptical) is moving from down to up...i have one needle of which i did the code in cctouchmoved( so that it can in any direction in scene)..what i need guys...when i touch that needle to any of ballon it burst(i also have images of burst which i can use) but the main problem is that..how can needle know that only that area(which comes under tha ballon)...so that i call the bursting animation that time...because every moment cordinates of baloon changes(since it is moving)..i hpoe guys u do undersatnd ma prob...
Animation
(3 posts) (2 voices)-
Posted 1 year ago #
-
Do a rect in rect check of the position of the needle vs the current positions of the balloons.
~if the rect of the needle (even the tip of it) is inside the rect of a balloon, POP!
Posted 1 year ago #
Reply
You must log in to post.