Search:

Type: Posts; User: mortalc

Search: Search took 0.06 seconds.

  1. Replies
    12
    Views
    8,479

    Re: Start code again?

    Could you give a quick example on how to do it in this specific case?
  2. Replies
    12
    Views
    8,479

    Re: Start code again?

    I've got a book on Java, and it mention while loops but said nothing on while(true) loops (unless they're the same thing), nor continue statements. help?
  3. Replies
    12
    Views
    8,479

    Re: Start code again?

    Thanks! So what would be the code for that?
  4. Replies
    12
    Views
    8,479

    Re: Start code again?

    Yes.
    1. Password Field 1
    Passed: go to Password Field 2
    failed: restart from Password Field 1
    2. Password Field 2
    Passed: go to Password Field 3
    failed: restart from Password Field 1
    3....
  5. Replies
    12
    Views
    8,479

    Re: Start code again?

    Is that the only way to do it? Just out of interesst. Is there no way just to say "If this happens, start again." iunstead of being in a while loop? Because surely that would meen do everything and...
  6. Replies
    12
    Views
    8,479

    Start code again?

    Assuming that Java is done in a linear form, how can I start a code from the beginning?
    for example, say I have a set of Password Fields, and if any is gotten wrong, the whole code starts again from...
  7. Replies
    23
    Views
    3,161

    Re: Object or Class?

    Thankyou.
    I think I will start with something less ambitious - ideas?
    I will certainly refer to here when I do get started on my game.

    Ed:
    I've had an idea. Basically, it takes place on a 50x50...
  8. Replies
    23
    Views
    3,161

    Re: Object or Class?

    Is my code right?

    Also, does the tutorial cover everything? Just there are some things that you've mentioned that I don't understand, and much of it You'll have to forgive me this - I like to...
  9. Replies
    23
    Views
    3,161

    Re: Object or Class?

    Hokay, heregoes. This is what I've got so far - Just the Character class and a Character. Tell me if I've made any mistakes:


    public class Character {
    private int health=50;
    private int...
  10. Replies
    23
    Views
    3,161

    Re: Object or Class?

    Yes I did read the tutorial.
    It just doesn't seem to touch on what I want... Maybe what I want isn't possible in Java.
    Oh well.
    By the way, for the methods question, I had an idea. Basically, both...
  11. Replies
    23
    Views
    3,161

    Re: Object or Class?

    I can't figure out how to create an object (without simply using new; I mean creating one as you would a class).
    Basically, The Character will be refrenced continuously throughtout the code. Can I...
  12. Replies
    23
    Views
    3,161

    Re: Object or Class?

    Right. Thanks!.
  13. Thread: Rar!

    by mortalc
    Replies
    4
    Views
    1,551

    Re: Rar!

    Not at first.
    If it ever turns into something, well, impressive, then I will probably do that. But I'm starting off simple (-ish). And then... THEN comes the REVERSE QUANTUM POLAR BEARS. Or...
  14. Replies
    23
    Views
    3,161

    Object or Class?

    I'm designing a game not unlike LF2.
    What I'm wondering is - Should I use classes or objects for the characters? Basically the fields would be basic stats, Methods would be attack, die (if Health ->...
  15. Thread: Rar!

    by mortalc
    Replies
    4
    Views
    1,551

    Rar!

    Hey. I'm Mortalc and I'm working on writing a game. I have justed on Java, and have a basic knowledge of Javascript and HTML.
    Oh, and don't be upset if I eat you. >:)
Results 1 to 15 of 15