Could you give a quick example on how to do it in this specific case?
Type: Posts; User: mortalc
Could you give a quick example on how to do it in this specific case?
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?
Thanks! So what would be the code for that?
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....
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...
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...
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...
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...
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...
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...
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...
Right. Thanks!.
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...
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 ->...
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. >:)