Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. greece57
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by greece57

    • for of loop [SOLVED]
      Help • • greece57

      2
      2
      Posts
      3834
      Views

      for of only works with collections which can iterate (eg arrays). for in iterates over the keys of an object. So if you do for let roomName in Game.rooms and want to do something with the room, you do Game.rooms[roomName].lookAt.
    • TypeError in PathFinder: a.getRangeTo is not a function
      Help • • greece57

      5
      5
      Posts
      7701
      Views

      Try providing current position as target.pos instead of { pos: target.pos, range: 1 }. I might be wrong but according to docs it seems only destination accepts object like that. Primary position is simple position object.