Skip to main content

setting directions for Agent actions works but stops MEE Win11 PC

Comments

4 comments

  • Ian O'Brien

    I can add the JS etc later if need be (I built in blocks)

    0
  • Ian O'Brien

    It is working!!!

    player.onChat("x", function () {
        path = "1rr111r111l1l111l1111r1r111rr11"
        for (let index3 = 0; index3 <= path.length; index3++) {
            if (path.charAt(index3) == "l") {
                agent.turn(LEFT_TURN)
            } else if (path.charAt(index3) == "r") {
                agent.turn(RIGHT_TURN)
            } else if (path.charAt(index3) == "1") {
                agent.move(FORWARD, 1)
            }
        }
    })
    1
  • Ian O'Brien

    Now to make a Path/string "logbook" of his journeys.

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    This most excellent! What a great idea! Thanks for bringing us along on your journey!

    0

Please sign in to leave a comment.