City Skyline Test | Depth Study
Gives feel of perspective and depth by reacting to mouse movements. The effect is parallax, read more…
The city images are very choppy and ugly, I know, it’s just a test.
Sample Actionscript. This in on one of the buildings which are separate movie clips. Adjust the equation for different effect.
The basic formula is as follows: this._x = _root._xmouse / (speed) + transform
- onClipEvent (enterFrame) {
- this._x = _root._xmouse/7 - 50;
- }
Update: Here’s a similr effect achieved by just negating the relation between the mouse and the building movie clips.
- onClipEvent (enterFrame) {
- this._x = -_root._xmouse/7 - 50;
- }
Download Source Fla File





























Leave a Reply