Search:

Type: Posts; User: Shzylo

Search: Search took 0.22 seconds.

  1. Replies
    1
    Views
    323

    Aligning left for JMenuBar

    I want the items in the JMenuBar to align to the left, and I cannot get it to do so. I have tried using FlowLayout, but that makes the height of the JMenuBar bigger, and I don't want that. How do I...
  2. Re: How to use the Random statement to generate a random attack.

    I want Random() to randomly pick one of the attacks, or select one of the Strings randomly from the list.

    --- Update ---

    Nevermind, i found out how:

    Random random = new Random();
    int number...
  3. Re: How to use the Random statement to generate a random attack.

    Better?
  4. How to use the Random statement to generate a random attack.

    I am making a text adventure that in a stage you have to fight an enemy. I want to use the Random() method so the enemy will use a random move when it is their turn to attack.
  5. Replies
    5
    Views
    262

    Re: Boolean value prints out the wrong one.

    Fail... I haven't used java in a while, I won't tell you what I have been using since i may get banned :/
  6. Replies
    5
    Views
    262

    Re: Boolean value prints out the wrong one.

    I only used System.exit so it would close after it printed out the value.
  7. Replies
    5
    Views
    262

    Boolean value prints out the wrong one.

    I am making a text adventure for a simple project as a java beginner, and it caught my mind that no matter if the value is true or false, it always prints out as if it was true. I took the liberty of...
  8. Replies
    1
    Views
    336

    How to put my code onto the window.

    I have made a text-adventure, I got text, input, ect. I have a window that pops up now, but I want to know how to put the text into the console.

    Game.java


    package main;

    /*
    * Shzylo's...
  9. Re: Java User-Input bug (not continuing); NOVICE

    The dots is part of the Println method. The value of direction is n/a
    public static String direction = "";

    It would help if you look at my code: Shzylo's Text Adventure.ZIP

    don't type 'help'...
  10. Replies
    15
    Views
    552

    [SOLVED] Re: I have no clue what is wrong

    Hmm..

    can you give some screen shots?
    You can search "snipping tool" and it will allow you to select a part of your screen, and save it as an image. Do that with your environment variable.
  11. Replies
    15
    Views
    552

    [SOLVED] Re: I have no clue what is wrong

    Here's a tutorial to make sure you did the correct steps..
    Java Tutorial: Java For Beginners (Part 1): Getting Started - YouTube
    and you can skip to part 1:30 to installing env. variable part,...
  12. Re: Java User-Input bug (not continuing); NOVICE

    The direction not recognized is everything besides "north, south, east, west" capitalization not affected.


    The invalid value i always type is 'no' to test loop.


    int x = 0;
    int y = 0;

    no...
  13. Re: Java User-Input bug (not continuing); NOVICE

    All I did was edit the main class, so here it is:

    Main.java


    package main;

    public class Main extends Variables {

    static int x = 0;
  14. Replies
    15
    Views
    552

    [SOLVED] Re: I have no clue what is wrong

    Did you put in your environment variable?
  15. Re: Java User-Input bug (not continuing); NOVICE

    I have fixed the bug by putting the IF_ELSE statement inside of a do-loop.
    I have another bug that will consist of a loop, but I don't know how to do the loop correctly, or what loop

    It will...
  16. Re: Java User-Input bug (not continuing); NOVICE

    Yes, sir. There is not error file generating, it just terminates.
  17. Java User-Input bug (not continuing); NOVICE

    Hello, I hope to be a member here a while, and as my first official post, I would like to issue my novice bug. I know, you will find it extremely easy. I am trying to make a text-adventure as my...
  18. Replies
    1
    Views
    227

    Shzylo, the newcomer. (Correct Forum)

    Hello, all. I am here for my introductory in Java!
    I am quite interested in java since i found this game called Mythruna, and I got wowed..

    So, I am making a text-adventure game. I am having a...
Results 1 to 18 of 18