Ok I've got an actionscript problem that I can't work out (there's probably an easy answer I'm just to stupid to figure it out :) )
Here's the script
for(i=1;i<100;i++){
if (_root["plat"+i].hitTest(this._x, this._y, true)) {
this.gotoAndStop("run");
}
}
It's simply saying that if the character is on one of the 100 platforms, it goes to the run frame to play the running animation, should be easy.
The problem is that when this happens it only plays the first frame of the animation, but when it's on the ground (same script just without the 'for' part really) it plays it perfectly.
Any ideas?