actionscript 2 - Walls VCAM flash AS2 -


so have 2 squares. 1 blue, instance name "mouse", , has code:

onclipevent (enterframe) {      this._x = _root._xmouse;     this._y = _root._ymouse; } 

the other red, instance name "mouseface", , has code:

onclipevent (enterframe) {     _x += (_root.mouse._x - _x) / 3; } 

and have vcam code:

onclipevent (enterframe) {     _x += (_root.mouseface._x - _x) / 40; } 

the idea blue square stays on top of mouse, , red follows blue, slower, , vcam follows red. vcam , red square moving on x axis. code redundant , bad; works i'm going continue using it.

anyway, im wondering how make vcam stop @ 2 x coordinates, 5 nights @ freddys.

any appreciated, thanks! :)


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -