Indeed, down is initialized by this line:
public AnimatedSprite down = new AnimatedSprite(SpriteSheet.dummy_down, 32, 32, 4);
Nothing in that line is null, so I'm guessing it all has to do with...
Type: Posts; User: Rexoa
Indeed, down is initialized by this line:
public AnimatedSprite down = new AnimatedSprite(SpriteSheet.dummy_down, 32, 32, 4);
Nothing in that line is null, so I'm guessing it all has to do with...
Oh, haha. Sorry if it hurt your head, I was showing that animSprite's value is supposed to change according to direction.
This is the whole method I should have shown before:
public void...
That was exactly what I was looking for. :)
Making variables IN the method while make a constructor solved part of my problem, but now I have an issue with one certain variable.
Say I have 4...
Just a quick question. What is a way this could be coded?
Imagine this:
I have a class called "Monster."
Class "Werewolf" extends "Monster."
"Werewolf" has a method called "update()" for...