Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: help needed

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post help needed

    can any one help on building a logic to check if the xpos and ypos of two cars is same so they must crash, for my oop project on car racing. thankyou ....


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: help needed

    What have you tried?

    To visualize the condition you want to detect, use a piece of graph paper and draw the cars to scale in various positions to see what x,y and width and height values need to be compared.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: help needed

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Show what you've tried. You might also research collision detection.

Similar Threads

  1. Grails Developer Needed - URGENTLY NEEDED *WORK FROM HOME*
    By IngeniumR in forum Paid Java Projects
    Replies: 0
    Last Post: February 5th, 2013, 07:19 AM
  2. help needed again
    By 5achowdhury in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 28th, 2013, 08:06 AM
  3. Help needed here!
    By esplanade56 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: September 2nd, 2011, 08:51 AM
  4. HELP NEEDED
    By nicola177 in forum Java Theory & Questions
    Replies: 1
    Last Post: March 4th, 2011, 11:17 AM
  5. help needed ,,, please
    By dpes in forum What's Wrong With My Code?
    Replies: 7
    Last Post: October 7th, 2010, 09:03 AM