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
Post a Comment