Click to See Complete Forum and Search --> : script check
Flamminpyro2003
04-13-2003, 12:03 PM
what the matter with this
function pathfind(start){ grid[start.x][start.y]=100 estlength=measureDist(start.x,start.y) open[0] = {x:start.x,y:start.y,path:"",len:estlength}; j = 0 while(!finished && j<200){expandnode(); j++} _root.input=result; tellTarget("_root.mcatch"){ gotoAndPlay(2);
}
}
carnwath
04-13-2003, 02:57 PM
what the heck is
open[0] = {x:start.x,y:start.y,path:"",len:estlength};
I dont understand this part
The rest looks normal enough
blanius
04-13-2003, 04:08 PM
Originally posted by Flamminpyro2003
what the matter with this
function pathfind(start){ grid[start.x][start.y]=100 estlength=measureDist(start.x,start.y) open[0] = {x:start.x,y:start.y,path:"",len:estlength}; j = 0 while(!finished && j<200){expandnode(); j++} _root.input=result; tellTarget("_root.mcatch"){ gotoAndPlay(2);
}
}
My guess is that you are trying to cut and paste Flash 5 action script into 3dfa.... :)
for starters I doubt tellTarget is supported as this is a deprciated actionscript command and really doesn't make sense in 3dfa. And the rest well it would be nearly impossible to tell whats wrong since we don't know what it's supposed to do. Nor do you tell what error or unexpected behavior you get when using this code....
I know you want to do an RTS game but you are going to have to create it from scratch and it will be alot of work... You CAN do it I have no doubt but you will have to THINK it through plan it out and plug away.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.