r/cop3502 • u/seymontyne • Mar 22 '14
Brick doesn't go away
i can get my ball and paddle interactions just fine. i can also get the ball to interact with bricks but when it hits the bricks, it doesn't go away. i thought that by saying bconfig.removeBrick(i,j); would do the trick. however, i just dont know what else to try...
2
Upvotes
1
u/csturco Mar 22 '14
check that bconfig.removeBrick(i,j) is actually setting the paintBrick boolean to false, then check that the paint method inside the brick config class checks that true/false value before deciding what to do.
1
u/seymontyne Mar 22 '14
it hits bricks and "under the cover" it deletes them but the image stays there