I think I'll just go with making it into an object and making a list of object references.
Cheers!
Type: Posts; User: pepzi999
I think I'll just go with making it into an object and making a list of object references.
Cheers!
I looked into that a bit, didn't help me much; in-fact, not at all.
Maybe explaining what I want to use it for will make things easier.
I have a loop with a 'drawLine' in it, and for anyone who...
Nope. I am asking how to define a array/list (or whatever it is called) that contains other lists;
Hi! I am finding it hard to make a list that contains another list of ints, like this;
int[] xList = new int[500]; // Initialize xList
int[] xListNr2 = new int[500]; //Another intList
?[]...
Saying you "know this java site" (I presume you mean "this is) and still post an irrelevant thread in a topic called "What's wrong with my code" is no excuse for doing just that.
Also, please...
Ever tried "createMovie movies = new createMovie();" and "movies.createMovies()"? That would probably do you good.
Just a heads up, where is the "break;" in case 'X' or case '0'?
You could make the user choose through some sort of menu before typing in numbers, however, this would be rather irritating and clunky.
What you would want to do is to check for a '+', '-' or a...
I guess you mean that the user puts in the values and the program calculates it?
System.out.print("Potencial energy (" + m*g*h + ") + kinetic energy (" + m*v*v + ") = " + m*g*h + m*v*v + "...
Well, you want to make a string out a certain number of letters in the text file, for example you can check if it appears in one row by saving that row of text as let's say String s1 and compare it...
I take some bad decisions so that I can complete it in time.
I could use this (though I already know the angle so that tan^-1 business isn't neccessary), but I took the easy way out and made a list of squares with collision detection of their own.
...
I think I'll go with the easy way and check for squares at each end, the only thing that would look weird then would be if the sword is angled at around 45° and gets thrown on to a corner of a...
http://www.youtube.com/watch?v=uNkIxzFvn1w
Ok, is this way of cheating (not doing it from scratch) very costful?
--- Update ---
For some reason the first post seems vanished. However the problem is that my code acts exactly like I...
Yes, the green boxes are only supposed to be red when the blue vector is in direct contact.
--- Update ---
You know what? I'll post a video
As of now, my code checks if either the vectors endpoints are between the rectangles y-values and if they are, it does the same for the x-values, however this is not correct, more andvanced math...
Now, as you can see in my profile I am a beginner in Java. I am making a game for a school-project and I need a little help setting up classes and threads because we didn't go through threads in my...