| Flash / Interactive | ©2006-2013 ~GuyFlash |
_root.createEmptyMovieClip("theMC",1)
arrayThing = [[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]]
for (a=0;a<arrayThing.length;a++){
arrayThing[a][0]=_root._xmouse
arrayThing[a][1]=_root._ymouse
}
onEnterFrame=function(){
_root.theMC.clear()
thewidth=1
for (a=0;a<arrayThing.length;a++){
//move along the array
arrayThing[a][0]=arrayThing[a+1][0]
arrayThing[a][1]=arrayThing[a+1][1]
arrayThing[a][2]=arrayThing[a+1][2]
arrayThing[arrayThing.length-1][0]=_root._xmouse
arrayThing[arrayThing.length-1][1]=_root._ymouse
thecolour="0x"+(random(98)+1)
thecolour=thecolour+(random(98)+1)
thecolour=thecolour+(random(98)+1)
arrayThing[arrayThing.length-1][2]=thecolour
thewidth+=0.75
//draw
if (a>0){
_root.theMC.lineStyle(thewidth,arrayThing[a][2])
_root.theMC.moveTo(arrayThing[a][0],arrayThing[a][1])
_root.theMC.lineTo(arrayThing[a-1][0],arrayThing[a-1][1])
}
}
}
like "
Ever thought about making a version of snake or somehitng out of it?