PSEUDO-AGENT OR THE PARADOX OF WILL(html)

FINAL PROJECT /PROGRAMMING CONCEPTS FOR ARTISTS AND DESIGNERS

CONCEPT AND INTERACTION DESIGN: MARLON BARRIOS SOLANO

ACTOR: MARC PERROTTA

FASH MX /FINAL CUT

 

MAIN CODE

ESCENE 2

//Main Bahaviors

//change scene anf go to rest

this.onMouseDown = function() {
nextScene();
};
//activate follow the mouse

this.onMouseMove = function() {
follow();
};
//activate listener for keys

function keyListener() {
}
keyListener.onKeyDown = function() {
activekeys();
};
Key.addListener(KeyListener);
function activekeys() {
switch (Key.getCode()) {
case Key.UP :
gotoAndStop(10);
break;
case Key.DOWN :
gotoAndStop(11);
break;
case Key.LEFT :
gotoAndStop(12);
break;
case Key.RIGHT :
gotoAndStop(13);
break;
case Key.SPACE :
gotoAndStop(14);
break;
//mouth
case Key.SPACE :
gotoAndStop(14);
break;
//mouth
case Key.SHIFT :
gotoAndStop(15);
break;
// close eyes
case Key.CONTROL :
gotoAndStop(16);
break;
}
}
function follow() {
if (this._xmouse<Stage.width/3 && this._ymouse<Stage.height/3) {
gotoAndStop(1);
}
if (this._xmouse>Stage.width/3 && this._xmouse<Stage.width/3*2 && this._ymouse<Stage.height/3) {
gotoAndStop(2);
}
if (this._xmouse>Stage.width/3*2 && this._xmouse<Stage.width && this._ymouse<Stage.height/3) {
gotoAndStop(3);
}
if (this._xmouse<Stage.width/3 && this._ymouse>Stage.height/3 && this._ymouse<Stage.height/3*2) {
gotoAndStop(4);
}
if (this._xmouse>Stage.width/3 && this._xmouse<Stage.width/3*2 && this._ymouse<Stage.height/3*2 && this._ymouse>Stage.height/3) {
gotoAndStop(5);
}
if (this._xmouse>Stage.width/3*2 && this._xmouse<Stage.width && this._ymouse>Stage.height/3 && this._ymouse<Stage.height/3*2) {
gotoAndStop(6);
}
if (this._xmouse<Stage.width/3 && this._ymouse>Stage.height/3*2) {
gotoAndStop(7);
}
if (this._xmouse>Stage.width/3 && this._xmouse<Stage.width/3*2 && this._ymouse>Stage.height/3*2) {
gotoAndStop(8);
}
if (this._xmouse>Stage.width/3*2 && this._ymouse>Stage.height/3*2) {
gotoAndStop(9);
}
}
stop();

////

General comment about the project:

Takeitfurther for performance of installation. Can be aplified with more complex movements and the use of sensors.

Follow the users.

Also interesting for web.

Still have problens with the jumps and be more rigorous about the shots.

Next stem is to set is to rest when is not receiving input.