Forum Topic: actionscript help plz read

(87 views • 1 reply)

New Topic Post Reply

This topic is 1 page long.

<< < > >>
Happy

HeThinkzLikeNoOthEr

Reply to Post Reply & Quote

Posted at: 7/4/09 03:35 PM

HeThinkzLikeNoOthEr DARK LEVEL 07

Sign-Up: 03/14/09

Posts: 6

onClipEvent (load) {
for (var i=0;i<10;i++) {
_root.attachMovie("Runner", "Runner"+i,i);
}
trail = new Array();
}

onClipEvent(enterFrame) {
runMan = {x:this._x, y:this._y};

trail.push(runMan);

if(trail.length > 10) trail.shift();

for(var i=0;i<trail.length;i++) {
_root["Runner"+i]._x =trail[i].x;
_root["Runner"+i]._y =trail[i].y;
_root["Runner"+i]._alpha =i*10;
_root["Runner"+i]._xscale =13.5;
_root["Runner"+i]._yscale =13.5;
}
}

this is my code..it makes a trail like what i want but..for sum reason the movie clip that i load..loads in a spot that i dont want it to and i dont know how to get rid of it or hide it...can sumone explain to me what my code does??


None

VigilanteNighthawk

Reply to Post Reply & Quote

Posted at: 7/4/09 04:30 PM

VigilanteNighthawk LIGHT LEVEL 03

Sign-Up: 02/13/03

Posts: 1,692

Before I read your post, perhaps you should read the forum description?

Besides, I only know AS 3, but your code needs to check whether or not is within the stage boundaries.

All times are Eastern Standard Time (GMT -5) | Current Time: 02:13 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!