Contact Info / Websites

action script

2008-04-05 16:30:06 by taco857
Updated

Here an action script code for jumping and walking

onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
vel_y = 36;
jumping = true;
}
if (jumping == true) {
vel_y -= 2;
if (vel_y<=-15) {
vel_y = -15;
}
this._y -= vel_y;
}
if (_root.ground.hitTest(this._x, this._y+27, true)) {
vel_y = 0;
jumping = false;
}
}
onClipEvent (enterFrame) {
this._y += 16;
if (_root.ground.hitTest(this._x, this._y+27, true)) {
this._y -= 16;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
this.gotoAndStop(1);
}
if (Key.isDown(Key.LEFT)) {
this.play();
this._x -= 15;
this._xscale = 100;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this.play();
this._x += 15;
this._xscale = -100;
}
}

then make an mc and lable it ground
lable you guy character
make sure your guy is facing right


Comments

You must be logged in to comment on this post.


&amp;lt;deleted&amp;gt;<deleted>

2011-06-16 00:45:22

Hot teen masturbating on cam.

Download here: http://cashload.org/5fcdf00e

She starts crying at the end.