As I am new to cocos2d, and I try my best. Someone will suggest me how to work on this.
I have 3 boxes (which are kinematic bodies)
There are also several balls (which are dynamic bodies) that have a tag value (window number) for each ball.
I have some obstacles (kinematic bodies) between where the ball shoots and the boxes.
In the script, I get a random window number: 2 (second field) and is set as the tag value for the ball. And the ball must go into the second box for sure, even if it hits obstacles. And if I got the box number for the next ball, like 3, the ball should go to the third box.
Can anyone suggest me
Thanks Monish
source share