Combined Code
movieClip 3 {
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 19 {
}
movieClip 22 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 37 {
}
movieClip 39 {
}
instance map of movieClip 39 {
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._x += 10;
} else {
if (Key.isDown(39)) {
this._x -= 10;
} else {
if (Key.isDown(38)) {
this._y += 10;
} else {
if (Key.isDown(40)) {
this._y -= 10;
}
}
}
}
}
}
movieClip 41 {
}
instance wall_barra3 of movieClip 41 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.map)) {
_root.map._y += 10;
}
}
}
instance wall_barra2 of movieClip 41 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.map)) {
_root.map._y -= 10;
}
}
}
instance wall_barra4 of movieClip 41 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.map)) {
_root.map._x -= 10;
}
}
}
instance wall_barra1 of movieClip 41 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.map)) {
_root.map._x += 10;
}
}
}