Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

blahblah_who_cares Group Title

Hi. I am creating a game and am new to it. How do I create collision and put in arrays of an object in netbeans?

  • one year ago
  • one year ago

  • This Question is Closed
  1. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Collision detection is done using "intersects." For example Rectangle.intersects(line);

    • one year ago
  2. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Array of objects is liek any otehr array. Object[] o = new Object[10]; Rectangle[] r = new Rectangle[10];

    • one year ago
  3. blahblah_who_cares Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    ok. But what is the [10] mean and after Rectangle[] is the r there because it is what rectangle starts with? @KonradZuse

    • one year ago
  4. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    it seems like you need to learn more about the language itself.. I'm assuming you're using Java With Netbeans? [10] is an array of 10. r is the name of the object... That's basic.

    • one year ago
  5. blahblah_who_cares Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes I am pretty new to the language. I just started a couple months ago. Im doing this for a project at school. And yes I am using Java with Netbeans

    • one year ago
  6. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You can say Rectangle Tuna_Fish_sammich = new Rectangle(); if you wanted...

    • one year ago
  7. mominanisar Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    you can get help from video tutorials on http://thenewboston.org/

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.