Could someone help with some pathfinding game code using Director please?

Hey guys, i`m new to director and am trying to create a very basic graffiti game with pathfinding code. any links to online tutorials or code sites would be much appreciated! thanks in advance!

I don't understand how pathfinding relates to graffiti, but here is a Lingo implementation of the A* algorithm

Similar Messages

  • I purchased a digital itunes giftcard through paypal but can't seem to find a 'code' to use to redeem the card. Could someone help me find where that code would be found? I can see the paypal transaction details.

    I purchased a digital itunes giftcard through paypal but can't seem to find a 'code' to use to redeem the card. Could someone help me find where that code would be found? I can see the paypal transaction details. jgm22

    -> iTunes Cards & Codes

  • Could someone help with a software to create android apps on mac

    Hi
    Could someone help with a software to create android apps on mac.
    Thanks

    Found this on the Google:
    http://beta.appinventor.mit.edu/learn/setup/setupmac.html
    Know nothing of it.

  • My Ipad reboots over and over again could someone help with my problem?

    My Ipad reboots over and over again, could someone help with my problem?

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo.

  • Can someone help with some coding on a muse HTML page that exported incorrectly?

    I run an NGO called warriors organization. It's an NGO trying to protect indigenous cultures in tanzania from loosing their cultures.. Our president is running a marathon In a week to raise money to build a school for maasai children.. and the marathon page got garbled on export from muse. Can someone help with recoding that page? I'm traveling and don't have the muse work file with me.. Any help is greatly appreciated.. Take a look at http://warriorsorganization.org/marathon.html. I have a screen shot of how the page should look. Contact me at [email protected]
    Thank you,
    Aric

    1. yes
    2. yes
    3. No. DVD players can't play BluRay discs -- even if they are burned to a DVD disc.
    4. 1080p50 is a perfectly legitimate mode for shooting, particularly if you're shooting video with a lot of action, since it has double the actual frames of 1080i50. However, your output video may or may not actually have 50p frames (or even be 1920x1080), depending on what form of media you're publishing as. The BluRay files that Premiere Elements outputs, for instance are 50i.

  • Help with some java login code

    hey,
    I am a new member but used to visit the site regularly. I am undergoing a java project and I cannot seem to get my head around how to code when users log in, there name must appear at the top of each page they visit.
    User enters name into a text box. Do I use getter and setter methods? any bit of help would be of some advantage to me.
    Thanks for your time and I'll help with anyone else who is stuck.

    if JSP or servlet use Session...
    if you are using frame you have to consider... which frame is a top parent. that top frame will have the set and get method.. for you to set and retrieve the user name.. bear in mind that different object will have different user...
    so you have to play fair game ...hehehehe :-)

  • Could someone help with me

    I am using BB8820, when I reinstalled my computer system, one problem occurred to my blackberry desktop manager.  when I connect my BB to computer,there is no response with blackberry desktop manager. And when I open the BB device manager ,it showed me that LIBBBLAUNCHAGENT.DLL is to be needed. So I do not  have  LIBBBLAUNCHAGENT.DLL in my computer.
    Could someone pls tell me where can I download this file? I would really appreciate.

    I have the same issue after updating Blackberry Desktop software......can anyone help please?
    iPhone for fun, Blackberry for Work........
    I'm not looking for Kudos but if my post helped then give me the Kudos and maybe it will help others

  • Could someone help with issue please

    Hello
    I have posted this issue twice. I desperately need help with this.
    I have installed j2sdk 1.4.1 first and then installed SunONE Community Edition on my XP Home Edition laptop. I am able to write and run programs. But when I close SunONE, it crashes XP. I cannot bring up the task bar to kill the processes or does the CTRL+ALT+DEL work.
    The same problem happens when I tried with Netbean 3.5.

    I can't give you an answer, but I can help you find one:
    o) You don't need to say hello, we assume that you're there seeing as you made the post
    o) Don't cross / multi post
    o) Use a better title - pretty much everyone here wants help with an issue
    o) http://www.google.com
    http://www.mektrix.2ya.com/answers.html

  • Help with completing sentences game code

    Hi, I`m a bit stuck, I`m making a game where you have to complete the sentences by dragging the words which are generated dinamically to its right place over some boxes, everything works fine but if you pull the words out of the boxes one all are placed it crashes.
    Unfortunately this is someone elses code (another programmer who bailed on us in the middle of the proyect) although I manage to make it work with new words, making the draggable items undraggable one you place all 4 of them in the right boxes is totally unclear to me. I`ll appreciate any help I can get.
    Here`s all the code that this part of the movie is using:
    function aleatorio(min, max)
        var _loc2 = true;
        if (usados.length <= max - min)
            while (_loc2 != false)
                var _loc1 = Math.floor(Math.random() * (max - min + 1));
                _loc2 = repetido(_loc1);
            } // end while
            usados.push(_loc1);
            return (_loc1);
        else
            return (0);
        } // end else if
    } // End of the function
    function repetido(num)
        var _loc1 = false;
        for (i = 0; i < usados.length; i++)
            if (num == usados[i])
                _loc1 = true;
            } // end if
        } // end of for
        return (_loc1);
    } // End of the function
    stop ();
    var usados = new Array();
    _root.palabras_colocadas = 0;
    palabras_correctas = 0;
    listado_x = 700;
    listado_y = 400;
    origenx = 0;
    origeny = 0;
    estaba_en = -1;
    apagar = false;
    _root.frase = 2;
    var palabras = new Array("huts", "made", "mud", "straw");
    var correctas = new Array(false, false, false, false);
    var ocupadas = new Array(-1, -1, -1, -1);
    var my_font = new TextFormat();
    my_font.font = "Arial";
    my_font.color = 0;
    my_font.size = 30;
    palabras[i].embedFonts = true;
    my_font.bold = true;
    var i = 0;
    while (i < 4)
        this["cuadro" + i].gotoAndStop(1);
        this.createEmptyMovieClip("myClip" + i, this.getNextHighestDepth());
        largo = palabras[i].length * 22;
        this["myClip" + i].createTextField("label", 1, 0, 0, largo, 40);
        this["myClip" + i].label.text = palabras[i];
        this["myClip" + i].label.setTextFormat(my_font);
        this["myClip" + i].onPress = function ()
            temp = this._name;
            temp = Number(temp.charAt(6));
            if (ocupadas[0] == temp)
                apagar = true;
                estaba_en = 0;
            } // end if
            if (ocupadas[1] == temp)
                apagar = true;
                estaba_en = 1;
            } // end if
            if (ocupadas[2] == temp)
                apagar = true;
                estaba_en = 2;
            } // end if
            if (ocupadas[3] == temp)
                apagar = true;
                estaba_en = 3;
            } // end if
            if (!apagar)
                estaba_en = -1;
            } // end if
            origenx = this._x;
            origeny = this._y;
            trace ("estaba en " + estaba_en);
            this.startDrag();
        this["myClip" + i].onRelease = this["myClip" + i].onReleaseOutside = function ()
            this.stopDrag();
            cual = this._name;
            cual = Number(cual.charAt(6));
            drop = eval(this._droptarget);
            trace (drop);
            donde = String(drop);
            cuadro = donde.substr(8, 6);
            donde = Number(donde.charAt(14));
            trace (cual + " en " + donde + " " + cuadro);
            if (cuadro == "cuadro")
                if (ocupadas[donde] >= 0 && ocupadas[donde] <= 3 || donde == estaba_en)
                    apagar = false;
                    this._x = origenx;
                    this._y = origeny;
                else
                    if (!apagar)
                        ++_root.palabras_colocadas;
                    } // end if
                    tramo = eval("tramo" + (donde + 1) + "_mc");
                    tramo.gotoAndPlay(2);
                    if (_root.palabras_colocadas >= 4)
                        startbtn.start();
                        start_mc.gotoAndPlay(2);
                    else
                        palabra_ok.start();
                    } // end else if
                    largo = palabras[cual].length * 8.500000E+000;
                    drop.gotoAndStop(2);
                    this._y = drop._y - 22;
                    this._x = drop._x - largo;
                    ocupadas[donde] = cual;
                    if (apagar)
                        apaga = eval("cuadro" + estaba_en);
                        apaga.gotoAndStop(1);
                        tramo = eval("tramo" + (estaba_en + 1) + "_mc");
                        tramo.gotoAndPlay(6);
                        ocupadas[estaba_en] = -1;
                        correctas[estaba_en] = false;
                        apagar = false;
                        trace ("hay " + _root.palabras_colocadas + " palabras");
                        if (_root.palabras_colocadas == 3)
                            trace ("apaga sin ruido");
                            start_mc.gotoAndStop(1);
                        } // end if
                    } // end if
                    trace (ocupadas[0] + " " + ocupadas[1] + " " + ocupadas[2] + " " + ocupadas[3]);
                    if (cual == donde)
                        ++palabras_correctas;
                        correctas[donde] = true;
                    } // end if
                } // end if
            } // end else if
            if (cuadro == "myClip" || cuadro == "start_")
                palabra_error.start();
                this._x = origenx;
                this._y = origeny;
            } // end if
            if (cuadro == "fondo")
                if (apagar)
                    apaga = eval("cuadro" + estaba_en);
                    apaga.gotoAndStop(1);
                    tramo = eval("tramo" + (estaba_en + 1) + "_mc");
                    tramo.gotoAndPlay(6);
                    ocupadas[estaba_en] = -1;
                    correctas[estaba_en] = false;
                    --_root.palabras_colocadas;
                    apagar = false;
                    trace ("hay " + _root.palabras_colocadas + " palabras");
                    if (_root.palabras_colocadas == 3)
                        startbtn.start();
                        start_mc.gotoAndStop(1);
                    } // end if
                } // end if
            } // end if
        ++i;
    } // end while
    var ii = 0;
    while (ii < 4)
        var numeroNuevo = aleatorio(1, 4);
        trace (numeroNuevo);
        this["myClip" + numeroNuevo]._x = listado_x;
        this["myClip" + numeroNuevo]._y = listado_y + 40 * i;
        ++ii;
    } // end while

    that's too much code to go through line by line.  i'd recommend placing some trace() functions in strategic locations to narrow the location of the problem.

  • Help with some explanation of code

    Hi
    could some one explain how the code in italics works below.  Is the varaiable currentObject which has a data type of DragDrop an
    array as well that gets loaded up with the string values of the dragdrops array?
    public class Map extends MovieClip
            var dragdrops:Array;
            public function Map()
                // constructor code
                dragdrops = [deathvalley,goldengate,grapes,hollywood,
                 joshuatree,laketahoe,mission,redwood];
              var currentObject:DragDrop;
                for (var i:uint = 0; i < dragdrops.length; i++)
                    currentObject = dragdrops[i];
                    currentObject.target = getChildByName(currentObject.name + "_target");
    AND THIS CODE I THINK TESTS FOR IF THE OBJECT HITS ITS TARGET BUT I DON'T UNDERSTAND HOW IT WORKS?
    if (hitTestObject(target))
                    visible = false;
                    target.alpha = 1;
                    Object(parent).match();

    Hi ,
    Try to write the code in this type of format.
    I think this may help you.
    TABLES: bapiache08, bapiacgl08,bapiaccr08, bapiret2.
    DATA: t_bapiache08 LIKE TABLE OF bapiache08 WITH HEADER LINE,
    t_bapiacgl08 LIKE TABLE OF bapiacgl08 WITH HEADER LINE,
    t_bapiaccr08 LIKE TABLE OF bapiaccr08 WITH HEADER LINE,
    t_bapiret2 LIKE TABLE OF bapiret2 WITH HEADER LINE,
    ct_bapiret2 LIKE TABLE OF bapiret2 WITH HEADER LINE.
    t_bapiache08-obj_type = 'BKPFF'. "BKPFF
    t_bapiache08-obj_key = '010000000000062005'.
    t_bapiache08-obj_sys = 'T90CLNT800'. "T09CLNT800
    t_bapiache08-username = 'SSI4'.
    t_bapiache08-header_txt = 'DOCUMENT POSTING'.
    t_bapiache08-comp_code = '1000'.
    t_bapiache08-fisc_year = '2005'.
    t_bapiache08-doc_date = '20050805'.
    t_bapiache08-pstng_date = '20050805'.
    t_bapiache08-fis_period = '07'.
    t_bapiache08-doc_type = 'SA'.
    t_bapiache08-compo_acc = 'FI'. "GL
    APPEND t_bapiache08.
    t_bapiacgl08-itemno_acc = '031'.
    t_bapiacgl08-gl_account = '160000'.
    t_bapiacgl08-comp_code = '1000'.
    t_bapiacgl08-pstng_date = '20050805'.
    t_bapiacgl08-doc_type = 'SA'.
    t_bapiacgl08-fisc_year = '2005'.
    t_bapiacgl08-fis_period = '07'.
    t_bapiacgl08-stat_con = 'X'.
    t_bapiacgl08-vendor_no = '1920'. "ACCOUNTING NO.FOR VENDOR/CREDITOR.
    t_bapiacgl08-item_text = 'LINE ITEM TEXT BY VIN'.
    APPEND t_bapiacgl08.
    t_bapiaccr08-itemno_acc = '031'.
    t_bapiaccr08-currency_iso = 'EUR'.
    t_bapiaccr08-amt_doccur = '2000'.
    APPEND t_bapiaccr08.
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
    EXPORTING
    documentheader = t_bapiache08
    IMPORTING
    OBJ_TYPE =
    OBJ_KEY =
    OBJ_SYS =
    TABLES
    accountgl = t_bapiacgl08
    currencyamount = t_bapiaccr08
    return = t_bapiret2
    EXTENSION1 =
    Thanks & Regards,
    Ravi Kanth Yechuri.

  • Can someone help with some quick questions?

    If someone has the time it would really help if I had the
    answers to the following questions. I appreciate they may be
    obvious or mundane to some but I am trying to set up a network at a
    primary school. I've searched the forum for answers with no luck.
    1. Where does Contribute save the settings of a provided key?
    2. Can the file(s) that contains those settings be copied
    over for other users to use?
    Thanks in anticipation

    Thanks for your reply. I'm actually using the software in a
    primary school and would like to use the stc key and thus the
    settings it creates and save them into a profile that each pupil
    user would then load up automatically. I would like to avoid them
    having to enter the details each time. It appears to work as the
    ntuser.dat file has been updated.

  • Can someone help with a mac error code -22

    I have a error code -22 message when emptying my trash. Can anyone help me solve this? Thanks!

    10.5.8 is as high as you can go for a download at this point. If you want a more recent OS you will need to purchase a disk with Snow Leopard (10.6) on it. Once that is installed you can go to Lion (10.7) or Mountain Lion (10.8) if your MacBook supports it, by a (paid) download.
    Best of luck.

  • Could someone help with recursion?

    Make change for a dollar amount 0 - 999 using $100 bills, $20 bills, $5 bills and $1 bills with the total number of bills being as small as possible using a recursive algorithm. Now writing this non-recursivly is super easy, however the assignment calls for a recursive impementation. I can not for the life of me figure it out. I know the problem with my algorithm is that I keep making new instances of Change, but i can't figure out a way to keep track of the previos instances and combine totals. Heres what I have so far
    * Change for a dollar amount.
    *require:
    * 0 <= amount && amount <= 999
    static public Change changeFor(int amount){
    Change c = new Change();
    if (amount == 0 ){
    c.setHundreds(0);
    c.setTwenties(0);
    c.setFives(0);
    c.setOnes(0);
    if (amount == 100){
    c.setHundreds(1);
    }else if(amount >100){
    c.setHundreds(c.hundreds() +1);
    return changeFor(amount%100);
    if (amount == 20){
    c.setTwenties(1);
    }else if(amount > 20){
    c.setTwenties(c.twenties() +1);
    return changeFor(amount%20);
    if (amount == 5){
    c.setFives(1);
    }else if(amount >5){
    c.setFives(c.fives() +1);
    return changeFor(amount%5);
    if (amount == 1){
    c.setOnes(1);
    }else if (amount >1){
    c.setOnes(amount);
    return c;
    return c;
    The method must be static. any help would be greatly apreciated.
    Joey

    Thanks for the help but im still not there yet. the assignment also says to define a class Change with properties for the number of 100 bills, 20 bills 5 bills and 1 bills. I can't access these variables from a static method. The only solution I can see is to make a new Change instance in my method, but since i can't pass the old change instance into the method i can't see how its possible to keep track of the count of each bill. I was able to make the algorithm work recursivly in 2 ways. One of the ways i removed the static scope. The other way was to make the Change properties for the number of bills static. Both ways are not good enough, heres why. The professor wants the method to work with his tester file that looks like this:
    for (int amount = 0; amount <= 999; amount = amount + 77)
    System.out.println("Change for dollar amount " + amount + " is " + Change.changeFor(amount));
    Therefor when i make the scope of the property values static, this loops keeps adding the old bill numbers from the pervious amount to the new bill numbers, which really throws off the count =P. When the method is not static, the compiler catches a fit because there was no instance of Change created in the tester file. heres a working version of the static method with static property values:
    * Change for a dollar amount.
    *require:
    * 0 <= amount && amount <= 999
    public static Change changeFor(int amount){
    if (amount >= 100){
    amount-=100;
    hundreds+=1;
    return changeFor(amount);
    if (amount >= 20){
    amount-=20;
    twenties+=1;
    return changeFor(amount);
    if (amount >= 5){
    amount-=5;
    fives+=1;
    return changeFor(amount);
    if (amount >= 1){
    amount-=1;
    ones+=1;
    return changeFor(amount);
    and the class defines static private int hundreds, twenties, fives, ones;
    the non-static versions of the method is about the same except i use this.object instead of the static scope properties. any help more help is apreciated greatly and thanks to those who have helped some so far.
    joey

  • Can someone help with some basic answers on Premiere Elements 12

    I have used Premiere Elements in the past (up to Premiere Elements 9) but only once per annum to edit the past year's video of my Grandchildren. The change now is that I am using a Panasonic HC-V520 and have been shooting in 1080 50p. Premiere Elements 9 doesn't support this format I believe.
    My questions are:
    1     Can Premiere Elements 12 import and edit this format?
    2     If the answer is yes to question 1, can I mix older footage from my old Sony Camcorder with this newer footage for edit in Premiere Elements?
    3     Can I then output to either a Blu Ray disc to play on my DVD Player or an ordinary DVD disc to play on an older DVD Player which is not blu ray compatible?
    4     Am I wasting my time in recording in 1080 50p and should I instead be recording new footage in a different format?
    Thanks for any help you can give me.

    1. yes
    2. yes
    3. No. DVD players can't play BluRay discs -- even if they are burned to a DVD disc.
    4. 1080p50 is a perfectly legitimate mode for shooting, particularly if you're shooting video with a lot of action, since it has double the actual frames of 1080i50. However, your output video may or may not actually have 50p frames (or even be 1920x1080), depending on what form of media you're publishing as. The BluRay files that Premiere Elements outputs, for instance are 50i.

  • Hi, could someone help with append message TextArea????

    // a program by me
    // a class MailOrder
    // java core packages
    import java.text.NumberFormat;
    import java.util.Locale;
    // java extension packages
    import javax.swing.JTextArea;
    import javax.swing.JOptionPane;
    public class MailOrder {
    public static void main( String args[] )
    int product;
    double amount, product1 = 2.98, product2 = 4.50, product3 = 9.98, product4 = 4.49, product5 = 6.87;
    String input;
    // create DecimalFormat to format floating-point numbers
    // with two digit to the right of the decimal point
    NumberFormat moneyFormat =
    NumberFormat.getCurrencyInstance( Locale.US );
    JTextArea outputTextArea = new JTextArea();
    input = JOptionPane.showInputDialog(
    "Enter the product number" );
    product = Integer.parseInt( input );
    switch ( product ) {
    case 1:
    amount = product1;
    case 2:
    amount = product2;
    case 3:
    amount = product3;
    case 4:
    amount = product4;
    case5:
    amount = product5;
    case6:
    amount = product1 * product2 * product3 * product4 * product5;
    break;
    outputTextArea.append( product + "\t" +
    moneyFormat.format( amount ) + "\n" );
    } // end switch structure
    JOptionPane.showMessageDialog(null, outputTextArea,
    "The total retail prices", JOptionPane.INFORMATION_MESSAGE );
    System.exit( 0 );
    If anyone can explay why the append code aren't working.
    The compiler displays this message.
    unreachable statement
    outputTextArea.append( product + "\t" +
    ^
    Tnx
    regards
    giuseppe

    Hi,
    You need to put the statement
    outputTextArea.append( product + "\t" + moneyFormat.format( amount ) + "\n" );
    outside the switch case loop and then initialise amount variable.
    -Amol

Maybe you are looking for