Results 1 to 1 of 1
- 10-14-2012, 04:01 PM #1
Senior Member
- Join Date
- May 2012
- Posts
- 170
- Rep Power
- 2
Collision detection isn't working...... Help please? [FIXED]
Yello, it's me again with another problem...
Basically I've got a charac rectangle and another rectangle in class Map (map) and Rect's name is wall..Java Code:public void isColliding(){ if(charac.getBounds().intersects(map.wall.getBounds())){ System.out.println("collision is true"); } }
in the main class I've got a thread loop that starts isColliding function every few milliseconds.
Why isn't it working? Should I show all the codes?
UPDATE:
Fixed, charac didn't update it's x coordinates that's all....
Sorry :DLast edited by Lionlev; 10-14-2012 at 04:29 PM.
WARNING I am Russian so it's possible that I wont understand you correctly...
Similar Threads
-
Collision detection
By mwr1976 in forum Java 2DReplies: 2Last Post: 04-14-2012, 12:45 PM -
Collision Detection
By Äppelpaj in forum Java 2DReplies: 1Last Post: 10-13-2011, 03:29 PM -
Collision Detection
By sunde887 in forum Java 2DReplies: 2Last Post: 10-07-2011, 11:40 PM -
Collision Detection?
By Alerhau in forum New To JavaReplies: 39Last Post: 09-07-2011, 04:55 PM -
Really Need help with some collision detection
By Harwad in forum New To JavaReplies: 1Last Post: 01-23-2011, 12:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks