• Post Reply Bookmark Topic Watch Topic
  • New Topic

help with java Collision  RSS feed

 
Semthan Waleed
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I'm here again with the same game("I solved the old problem") but this time with a different problem

my game is so simple and it is almost done but I have stuck in some things

like

1.Bircks should disappear one by one but they do not do that, they disappear at the same time

2.the ball is moving properly first round but then it will move the same all the time "just back"

I think may solve the problem number two by creating a new Rectangle to the sides?? but didn't work for me.


i used the boolean.on to remove the bricks but it didn't work

here is my code!!















 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Where does n ever get updated?

WP
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you ever suffer an Exception? you should never use empty catch blocks, least of all when developing things, because you don’t know whether the try block ever goes wrong.
 
Semthan Waleed
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Do you ever suffer an Exception? You should never use empty catch blocks, least of all when developing things, because you don’t know whether the try block ever goes wrong.


what do you mean??
 
Semthan Waleed
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:
Where does n ever get updated?

WP


kludd.repaint();

update the whole test class
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!