Search:

Type: Posts; User: pepzi999

Search: Search took 0.33 seconds.

  1. Re: How do you make a list that contains another list?

    I think I'll just go with making it into an object and making a list of object references.

    Cheers!
  2. Re: How do you make a list that contains another list?

    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...
  3. Re: How do you make a list that contains another list?

    Nope. I am asking how to define a array/list (or whatever it is called) that contains other lists;
  4. How do you make a list that contains another list?

    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
    ?[]...
  5. Replies
    1
    Views
    268

    Re: came from 3d to game Development...

    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...
  6. Replies
    1
    Views
    515

    Re: Call class method from another class

    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'?
  7. Re: no-tard, mid urgent, Help request: Calculating rational problems (making a calculator)

    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...
  8. Replies
    3
    Views
    327

    Re: I need your help ASAP :/

    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 + "...
  9. Replies
    3
    Views
    320

    Re: word count in a in a file

    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...
  10. [SOLVED] Re: Collision detection between vector and rectangle (MATH)

    I take some bad decisions so that I can complete it in time.
  11. [SOLVED] Re: Collision detection between vector and rectangle (MATH)

    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.
    ...
  12. [SOLVED] Re: Collision detection between vector and rectangle (MATH)

    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...
  13. [SOLVED] Re: Collision detection between vector and rectangle (MATH)

    http://www.youtube.com/watch?v=uNkIxzFvn1w
  14. [SOLVED] Re: Collision detection between vector and rectangle (MATH)

    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...
  15. [SOLVED] Re: Collision detection between vector and rectangle (MATH)

    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
  16. [SOLVED] Collision detection between vector and rectangle (MATH)

    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...
  17. Replies
    0
    Views
    345

    Problem sharing objects between threads

    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...
Results 1 to 17 of 18