I am a complete beginner to programming, but I've spent the last month reading and looking through tutorials.
I am stuck in my current project. I'm set up an entities package, with a class called Mob inside. From Mob, I've created Player and a monster class called Slime.
Now, I am really having a hard time getting the slime to move randomly, but before I even worry about that I have to figure out why I can't position him correctly.
When I do my addEntity(Slime) into my main class, with a x and y parameters, it ignores that and places him at 1,1.
Here is my Slime monster class: http://pastie.org/5404386
My entity class with the addEntity function: http://pastie.org/5404390
and my main class where I call in the slime and (attempt) to set its position parameters:
slime = new Slime(level, "Slime", 5, 5, 1);
level.addEntity(slime);
player = new Player(level, 11,11, input,JOptionPane.showInputDialog(this,"Please enter a Username."));
level.addEntity(player);
Thanks for any help!