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...
Type: Posts; User: Shzylo
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...
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.
Fail... I haven't used java in a while, I won't tell you what I have been using since i may get banned :/
I only used System.exit so it would close after it printed out the value.
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...
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...
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'...
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.
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,...
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...
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;
Did you put in your environment variable?
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...
Yes, sir. There is not error file generating, it just terminates.
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...
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...