those flash versions just use lines of increasing height. plus a mask.
this code is from http://www.gotoandplay.it/_articles/2004/11/mode7proto.php
“pic” and “picPeke” are just top down versions of the track. (“picPeke” appears to be a blurred version presumably for distance)
//======INI-createStrips========================================
//controla la creacion de los strips
function creaStrips() {
var a = 1;
var depth = 5;
var grosor = 1;
var multiply = 1.02;
var factorScala = 5;
var alturaStrip = 240/2;
var acumula = grosor;
//
for (grosor=1; grosor<grosorfinal grosor="grosor*multiply)"> grosor = grosor*multiply;<br> grosorFloor = Math.floor(grosor);<br> //<br> if (grosorFloor<2) {<br> strip = _root.attachMovie("picPeke", "pic"+a, depth);<br> } else {<br> strip = _root.attachMovie("pic", "pic"+a, depth);<br> }<br> strip.pic._xscale = 100;<br> strip.pic._yscale = 100;<br> //posiciona<br> strip._x = 200;<br> //200<br> strip._y = 400;<br> //350<br> //the ground is scaled only once, when created. not on every frame<br> strip._xscale = a*grosor*factorScala;<br> strip._yscale = a*grosor*factorScala;<br> //end function<br> mask = _root.attachMovie("mask", "mask"+a, (depth+1));<br> mask._height = grosorFloor;<br> mask._y = alturaStrip;<br> strip.setMask(mask);<br> //<br> strip.onEnterFrame = function() {<br> //the pic is rotated, but the 'move' symbol inside the pic is what is moved.<br> this.pic._rotation = -_root.rotation;<br> this.pic.move._x += -_root.sinness;<br> this.pic.move._y += _root.cosness;<br> };<br> //<br> alturaStrip = alturaStrip+grosorFloor;<br> depth = depth+2;<br> a++;<br> }<br> //end while<br>}<br>//======END-createStrips========================================<br>
[import]uid: 6645 topic_id: 1640 reply_id: 9969[/import]