Ok so Ive been working on an example to make a battle arena type that would make a border of the battle when you collide with an enemy and then start the battle.
And here I was thinking oh hey I can totally use this giant arena sprite and add in image point to control enemy Ai movement by using Pathfinding.
and so I name each point Action with a number of 1 - 9 and its laid out in a grid so that the enemy would choose a number and then I would path find to that sprite image point using
Sprite.imagepointx("action"&(enemy.B_action)) Same goes for Y.
Ok cool it moves .....wtf its isnt even going to the right spot its running into the border its get stuck refuse to move it pass up the spot its suppose to be at.... Ive tried on path finding arrived stop .....It just get stuck refuse to move after. and sometime if i do get out of the battle arena that same sprite seem to follow a pathfinding ...even if the object is destroyed.
Here my question is there a way to see the pathfinding in action in a line so i can See what the bloody hell is happening or would you guys like to take a look at it ?
https://www.dropbox.com/s/gyfsaablosqiy ... .capx?dl=1 This will auto download.
I found a really strange behavior so i move the variable from the sprite to a local variable and then I added in if it zero then choose 1-9...this shit just infinite choose itself how is that possible what ever I place a once trigger that stops it. ok fine next nothing will make it find a path so i did a little test of just one at a time. It still refuse to move. Im at lost in this pathfinding shit. also i found something strange is that if you dont have the variable with a once trigger then it will infinite find a path without letting it move. So i re did the code to just that one variable and no choose....now it wont move at all. I cant tell if it unable to find a path or the waypoint of the path does not exist what the bloody hell is going on. This shit is freaky.