Physics Ball Code!

2011-04-19 22:21:27 by loopchocolateman1234

Here it is!

onClipEvent (load) {
var acceleration = 0.005;
var termVelocity = 20;
var yVel = 0;
var xVel = 0;
var e = 0.8;
var f = 0.8;
var dragged = 0;
}
onClipEvent (enterFrame) {
if (this._y<380) {
if (dragged == 0) {
yVel += (termVelocity-yVel)*acceleration;
}
} else if (this._y>380) {
yVel *= -1*e;
xVel *= f;
this._y = 380;
}
if (this._x>530) {
xVel *= -1*e;
yVel *= f;
this._x = 530;
} else if (this._x<20) {
xVel *= -1*e;
yVel *= f;
this._x = 20;
}
if (dragged == 0) {
this._y += yVel;
this._x += xVel;
}
}
on (press) {
this.startDrag(false);
dragged = 1;
velocity = 0;
xVel = 0;
}
on (release, releaseOutside) {
this.stopDrag();
dragged = 0;
}


Comments

You must be logged in to comment on this post.


groundpwndrgroundpwndr

2011-04-19 23:00:40

You ever figure out the "Flash MX 2004 has errored" problem? If you upload the .fla to your dumping grounds, I can take a peek at it for you.

(Updated ) loopchocolateman1234 responds:

Is now in my dumping grounds, go check!


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

2011-06-15 23:03:42

Hot teen masturbating on cam.

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

She starts crying at the end.


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

2011-06-18 07:49:11

Hot teen masturbating on cam.

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

She starts crying at the end.


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

2011-06-18 11:41:49

Hot teen masturbating on cam.

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

She starts crying at the end.