Better use englisch names for your variables Just think about how much shorter "Speed" is compared to the german "Geschwindigkeit". English has the fancy ability to be very short on the expression highway imho Also this makes it easier for you to show code to other people around the world.

Better use englisch names for your variables Just think about how much shorter "Speed" is compared to the german "Geschwindigkeit". English has the fancy ability to be very short on the expression highway imho Also this makes it easier for you to show code to other people around the world.

Japanese is even shorter, typically only one kanji per word, but you'd have to learn a few thousand kanjis to be able to use it properly. xD I don't think kanjis are supported as names in Java though...

Japanese is even shorter, typically only one kanji per word, but you'd have to learn a few thousand kanjis to be able to use it properly. xD I don't think kanjis are supported as names in Java though...

They are. But it would be kinda confusing sometimes, as much japanese depends on the context...

but yeah always write code in English - even comments

On topic: Items/Inventory are of course data structures, so you need a fair amount of debugging to get it right.I mean even in Final Fantasy VII there was this bug with the 2xItem materia - you could increment one item infinitely

just out of curiosity, your player wouldnt happen to have 75 health would he? cause if I understand your code correctly, if he has 75 health then he won't get any health from it, because you have less than and greater than,b ut not equal to.

just out of curiosity, your player wouldnt happen to have 75 health would he? cause if I understand your code correctly, if he has 75 health then he won't get any health from it, because you have less than and greater than,b ut not equal to.

I decrease MAXHP-HP.So when he has full HP:

100 -100 = 0.

Then he wont get healed.

Oh I forgot to mention I created the ItemList/ActorList in my Database Class.Maybe where is the error?

And because of that I create 2 Database Object to access the Arrays.In my Game and Menu Class I make:

1

Databasebank = newDatenbase();

And then I use

1

g.drawString(bank.ItemListe.get(x).name

But how can I do it that I only need one Object but use it with both class?

EDIT: Ok I will put the external Menu Class inside my Game Class. Then its ok but it get more chaotic>.<"

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org