Search:

Type: Posts; User: NTWolf1220

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    1,212

    Re: Method not calling?

    They're not different classes. I wrote the first one to test the battle system I had been programming, and then replaced it with the second one...
  2. Replies
    5
    Views
    1,212

    Re: Method not calling?

    I'm sorry I didn't clarify more. Main.main are both the same method in the same class, but one of them executes correctly (the one where it's basically just a test for my battle class.) and one that...
  3. Replies
    5
    Views
    1,212

    Method not calling?

    Hi, so I've been working on several simple text rpgs for a long time, and I think this one is my best yet. For some reason, my battle system only seems to work when I tried doing just a battle in the...
  4. Replies
    4
    Views
    1,916

    Re: Help with Battle system?

    Thanks a ton! I read up on the break statement and implemented it with two more if statements, and it works perfectly!



    while (monster.hp > 0)
    {
    wrAttack(player, monster);
    if...
  5. Replies
    4
    Views
    1,916

    Help with Battle system?

    I've been working on a text-based RPG game with a simple turn based battle system. After a lot of work, I've managed to get the battle system working fine. However, the loop lets the monster you're...
  6. Replies
    1
    Views
    1,174

    NullPointerException?

    I've got a lot of code, and I'm not entirely sure what I've done wrong. My IDE isn't showing any errors, but I've got NullPointerExceptions in three of my classes.

    What should I do?



    Player...
  7. Replies
    2
    Views
    3,268

    Printing loop twice?

    Hi, I'm very new to Java and I've run into a strange problem while I was writing a calculator class.

    For some reason, anytime I run the program it prints this part twice:





    It's a pretty...
Results 1 to 7 of 7