Hello. I'm using Cowlol's A* Pathfinding Script (click) but have had some troubles with it. Here is the code I used:
Each code tag represents a script call, all in one parallel process event. In game, though, the specified event doesn't move. I know this isn't a problem with the map- I tried it using the Move Route event command and it worked- so what am I doing wrong with A*?
Code:
char = 46
x = 13
y = 25
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)
Code:
char = 46
x = 13
y = 16
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)
Code:
char = 46
x = 20
y = 14
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)
Code:
char = 46
x = 13
y = 25
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)
Code:
char = 46
x = 28
y = 25
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)
Code:
char = 46
x = 28
y = 29
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)
Code:
char = 46
x = 1
y = 25
goal_node = Node.new(x, y)
path = A_Star_Pathfinder.new
(goal_node)