Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    1,088

    [SOLVED] Re: Method sharing question.

    Impossible, unless: 1) down is null, or 2) you've created another animSprite variable that hasn't been properly initialized. If animSprite = down, then somewhere 'down' should have been initialized...
  2. Replies
    6
    Views
    1,088

    [SOLVED] Re: Method sharing question.

    By convention in Java, class names are capitalized, variable and method names begin with lowercase letters, and all are camel-cased thereafter. Constants (or final variables) are typically all caps...
  3. Replies
    6
    Views
    1,088

    [SOLVED] Re: Method sharing question.

    Why can't you pass the speed from each subclass to the parent method, something like:

    In class Werewolf:
    super.anim( speed ); // (the 'super' isn't required, but helps make it clear)

    Where...
Results 1 to 3 of 3