A community for students. Sign up today!
Here's the question you clicked on:
 0 viewing
blahblah_who_cares
 2 years ago
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?
blahblah_who_cares
 2 years ago
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?

This Question is Closed

KonradZuse
 2 years ago
Best ResponseYou've already chosen the best response.1Collision detection is done using "intersects." For example Rectangle.intersects(line);

KonradZuse
 2 years ago
Best ResponseYou've already chosen the best response.1Array of objects is liek any otehr array. Object[] o = new Object[10]; Rectangle[] r = new Rectangle[10];

blahblah_who_cares
 2 years ago
Best ResponseYou've already chosen the best response.0ok. But what is the [10] mean and after Rectangle[] is the r there because it is what rectangle starts with? @KonradZuse

KonradZuse
 2 years ago
Best ResponseYou've already chosen the best response.1it 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.

blahblah_who_cares
 2 years ago
Best ResponseYou've already chosen the best response.0Yes 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

KonradZuse
 2 years ago
Best ResponseYou've already chosen the best response.1You can say Rectangle Tuna_Fish_sammich = new Rectangle(); if you wanted...

mominanisar
 2 years ago
Best ResponseYou've already chosen the best response.0you can get help from video tutorials on http://thenewboston.org/
Ask your own question
Ask a QuestionFind more explanations on OpenStudy
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
 Engagement 19 Mad Hatter
 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.