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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -