Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    3
    Views
    818

    Re: Intersects method problems(FIXED)

    Why have the location of the rock in two places: the rectangle and the rockX variable?
    Having the Rock's location saved in just one place would be less confusing.
    Get rid of the rockX and rockY...
  2. Replies
    3
    Views
    818

    Re: Intersects method problems

    Have you tried debugging the code by using println statements? For example add a println() statement just before this statement:

    if(rock.rockRect.intersects(player.heroRect)){
    that prints out...
Results 1 to 2 of 2