# Make it faster

**URL:** <https://forum.kirupa.com/t/make-it-faster/183446>\
**Category:** flash\
**Created:** [March 27, 2006, 8:09am UTC](https://forum.kirupa.com/t/make-it-faster/183446 "2006-03-27T08:09:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blowfish](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blowfish/32/744_2.png) [@Blowfish](https://forum.kirupa.com/u/Blowfish)\
**Post date:** [March 27, 2006, 8:09am UTC](https://forum.kirupa.com/t/make-it-faster/183446/1 "2006-03-27T08:09:07Z")

</div>

I need 2 make this slidefuction go faster. I tryed to change the  
vel = vel\*0.2+(dest-pos)/7; but it didnt work. Any idées ?

```php
 
MovieClip.prototype.move2 = function() {
dest = _root.xnew;
pos = this._x;
vel = vel*0.2+(dest-pos)/7;
this._x += vel;
};
MovieClip.prototype.move = function() {
dest = _root.xnew;
pos = this._x;
vel = (dest-pos)/7;
this._x += vel;
dest = _root.ynew;
pos = this._y;
vel = (dest-pos)/7;
this._y += vel;
};

```

The button looks like this

```php
 
on (release) {
_root.ynew = _root.mask2._y+(-2-1)*400/2;
}

```

should i change something in button also or is it enought with the vel variable?

---

<div class="post-metadata">

**Author:** ![sed\_thh](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@sed\_thh](https://forum.kirupa.com/u/sed_thh)\
**Post date:** [March 27, 2006, 1:09pm UTC](https://forum.kirupa.com/t/make-it-faster/183446/2 "2006-03-27T13:09:51Z")

</div>

use tiles, medium quality and less masking

the code won’t do any noticable speedups til you are spending so much resources on animating the mc’s on stage
