Thursday, May 6, 2010

5

3 comments:

  1. Very nice. Did you use

    scaleX = -1

    when moving the character to the left? I am trying to accomplish the same thing.

    ReplyDelete
  2. Sry, i didn't see your comment.

    Actually I'm using this one:
    character.scaleX=-character.scaleX;

    and the code should look smth like this:

    if ( leftispressed ) {
    if ( leftflip ) {
    character.scaleX=-character.scaleX;

    leftflip=false;

    }
    }

    leftflip is a boolean that when it's true the character is facing to the left

    ReplyDelete