Lucasarts style game! Two questions!

Hi. Im making a classic lucasarts style game(Monkey Island, Full throttle). But I am not going to make it a “click and point” game, but using the arrow keys to move the character(see http://www.vx4.com/adventure-games/adventure-game.html.). I´ve already figured out how to do the walk code: see swf/Fla(I found it here: [URL=“http://www.kirupa.com/forum/showthread.php?t=216786&highlight=move+directions”]http://www.kirupa.com/forum/showthread.php?t=216786&highlight=move+directions)

onClipEvent (load) {
speed = 0;
diagonalSpeed = speed/Math.SQRT2;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
  if (Key.isDown(Key.UP)) {
   _x -= -diagonalSpeed;
   _y -= diagonalSpeed;
   gotoAndStop(16);
///This means that if right and up are presed, goto the animation on frame 
///16, the animation should be walking up, and right. You might have to 
/// change the frame number
  } else if (Key.isDown(Key.DOWN)) {
   _x -= -diagonalSpeed;
   _y -= -diagonalSpeed;
   gotoAndStop(14);
///The same here, except for down
  } else {
   _x -= -speed;
   gotoAndStop(8);
///This means if only right is pressed, goto the frame with right animation
  }
} else if (Key.isDown(Key.LEFT)) {
  if (Key.isDown(Key.UP)) {
   _x -= diagonalSpeed;
   _y -= diagonalSpeed;
   gotoAndStop(12);
  } else if (Key.isDown(Key.DOWN)) {
   _x -= diagonalSpeed;
   _y -= -diagonalSpeed;
   gotoAndStop(10);
  } else {
   _x -= speed;
   gotoAndStop(6);
  }
} else {
  if (Key.isDown(Key.UP)) {
   _y -= speed;
   gotoAndStop(4);
  } else if (Key.isDown(Key.DOWN)) {
   _y -= -speed;
   gotoAndStop(2);
  } else {
   if (_currentframe == 16) {
    gotoAndStop(15);
///All of these mean, that if you are walking in one direction, and you 
/// release the key, got to the frame of him facing that direction but not 
/// walkin, this makes him seem more realistic
   }
   if (_currentframe == 14) {
    gotoAndStop(13);
   }
   if (_currentframe == 12) {
    gotoAndStop(11);
   }
   if (_currentframe == 10) {
    gotoAndStop(9);
   }
   if (_currentframe == 8) {
    gotoAndStop(7);
   }
   if (_currentframe == 6) {
    gotoAndStop(5);
   }
   if (_currentframe == 4) {
    gotoAndStop(3);
   }
   if (_currentframe == 2) {
    gotoAndStop(1);
   }
  }
}
}

Ok, here are my two questions.:slight_smile:

  1. How to make the walls? I know that I can use the:
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.right)) {
x = _x-10;

_
But then I´ll have to create a MC for each wall and -X, +X ,-Y, +Y! too much trouble … so I was hoping to use somthing like this: http://www.n99creations.com/?pID=archives&col=Blue&arch=getBounds_as_walls. So that I could draw the entire wall, make it into a MC and code that was the wall. I´ve tried using this but I can´t figure it out.:frowning:

  1. How can I make my character get bigger as it comes closer to the screen, and smaller as it moves away from the screen? See: http://www.kirupa.com/developer/actionscript/zooming.htm

Can anyone help me with this …:)?