A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: script check

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Location
    home
    Posts
    5

    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!!!!

  2. #2
    Senior Member
    Join Date
    Mar 2003
    Posts
    136
    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

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center