SophieHoulden on DeviantArthttps://www.deviantart.com/sophiehoulden/art/Challenge-mouse-trail-36097809SophieHoulden

Deviation Actions

SophieHoulden's avatar

Challenge mouse trail

Published:
3.7K Views

Description

FULL VIEW OR I WILL ROUND PI up to FIVE!

in #flashers myself and decided to have a little challenge.

the rules were that we had 30mins to make some flash cursor trail gizmo type thing (basically anything that happend with mouse movement) and I did this... well actually I did this where the trail only ever was one segment long as I hadnt debugged the script when the time hit 0.

though its safe to say even if I had finished and got it to this point I still would have lost, as if you take a look at ~lexus727's piece [link] you will see his rocks the socks...

anyhoo, as there is no symbols I can just put the soucre here for you to play with:

_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])
}
}
}


oh yeah, this is running at 30fps :)
Image size
550x400px 466 B
© 2006 - 2024 SophieHoulden
Comments14
Join the community to add your comment. Already a deviant? Log In
FnafKingOfCre's avatar
the ultimate boredom buster
thank u