Tagged Questions
0
votes
0answers
11 views
Android cocos2d getting collision detection to work only on some frames of animation
I have an animated bomb sprite in my game and use CGRect for collision detection:
for (CCSprite bomb : _bombs) {
CGRect bombRect = CGRect.make(bomb.getPosition().x - (scaleFactor * ...
-1
votes
1answer
266 views
Insert object at index, when two objects collide
I have two arrays: one for projectiles, and one for targets.
Every target and every projectile has tag, and a tag with color (source code I took from Ray Wanderlich).
In my small game, when a ...
6
votes
4answers
3k views
Cocos2D collision detection against a random shape
I would like to brainstorm a few ways of handling how to detect a collision between a sprite and a user generated shape of some sort.
For example. There are 3 objects on the screen. The user takes ...