|
-
script check
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);
}
}
where the hell am i dame i think im lost!!!!
-
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
-
KoolMoves Moderator
Re: script check
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|