Search:

Type: Posts; User: Rexoa

Search: Search took 0.15 seconds.

  1. Replies
    6
    Views
    1,433

    [SOLVED] Re: Method sharing question.

    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...
  2. Replies
    6
    Views
    1,433

    [SOLVED] Re: Method sharing question.

    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...
  3. Replies
    6
    Views
    1,433

    [SOLVED] Re: Method sharing question.

    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...
  4. Replies
    6
    Views
    1,433

    [SOLVED] Method sharing question.

    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...
Results 1 to 4 of 4