:h: I cannot seem to find a decent way to create tiretracks. For instance, to be used on a sandy or snowy ground.
(You know, appearing, fading, new ones appearing, etc.).
Does anyone know how to create these in a simple, but effective way? Please help me out, thanks.
well you could make a function that attaches a moviecilp that then makes its self fade away over time.
example time!
[AS]
//// example
MakenFadeTracks = function(x,y,lifetime,layer){
mc = attachMovie(“yourmc”,“mc”+layer,layer,{_x:x , _y:y , decay: 100/lifetime});
return mc
mc.onEnterFrame = function(){
this._alpha-=this.decay;
if(this._alpha<=0)this.removeMovieClip();
}
}
[/AS]
hope this was simple enough you could also make it so the angle of the tracks is equall to the angle of the car.(or whatever).
heh lol forgot to show you how to use this.
[AS]
/// this uses the MakenFade tracks function.
onEnterFrame = function(){
// car movent and such
tracks = MakenFadeTracks(/x you want it on/ car.x,/* y you want the tracks on*/ car.y,/lifetime in frames/ 10 , /layer you want it on/ j++);
}
[/AS]