Hi Folks,
Hier was aus der Mottenkiste hab mal etwas in meinem Archiv gekrammt.
PHP-Code:
MovieClip.prototype.isomove = function(x, y, tempo) {
this._x += (tempo)*x;
this._y += (tempo/2)*y;
};
clip_mc.onEnterFrame = function() {
if (Key.isDown(Key.LEFT)) {
this.isomove(-1, -1, 2);
} else if (Key.isDown(Key.UP)) {
this.isomove(1, -1, 2);
} else if (Key.isDown(Key.RIGHT)) {
this.isomove(1, 1, 2);
} else if (Key.isDown(Key.DOWN)) {
this.isomove(-1, 1, 2);
}
};
Liebe Grüsse
Matze K.