Collision detection problem...

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I have a game where a ball hits actors (blocks). Each ball has a self.attribute that adds 1 every time the ball hit's a block (and destroy's it).

I don't have many problems, but if the ball hit's two blocks (at the same time, or VERY quickly after hitting 1) then it only registers as 1 hit.

This is an issue because the game awards points based on how many blocks the ball destroys...

Any ideas on how to fix this?

Comments

  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    Put the +1 hit rule on the blocks. That should work.

    ________________________________
    【ツ】iPhone Icon Pack【ツ】
    Free high score demo here (simple) and here (advanced)
  • DrGlickertDrGlickert Member Posts: 1,135
    I would do that, however, it's the ball that awards the points. There are also multiple balls that can be on the screen at one time which makes this impossible to do it in that manner.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Hey Doc, You'd want to set a rule on the block that says if it's destroyed, add a point.
Sign In or Register to comment.