Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hello! Is there a way this plugin can be used with any good pixel AI tracking for events? For example a event will chase the player but not get stuck on collisions?

Hello and thanks for your inquiry! This has been integreated in recent versions of the plugin! I have added a pathfinding system directly tied to my collision plugin :) This can be found in  the help file, under "Move Route Script Calls" section.

In a move route, you can use the script call..

this.findPathTo( X, Y )

where X is the X coordinate and Y is the Y coordinate. :) This will cause whoever uses this move route, to find the shortest possible path( WHILE navigating obstacles ),to the destination you provided( the X and Y coordinates )! This is completely different than the "setDestination" functin, as set destination will move the character in a straight line, "findPathTo" will intelligently search for a VALID path to be able to reach the destination you provide it. However bear in mind it can ONLY find grid locked coordinates. I.E. X:8, Y:15, it cannot find float values in the grid, the reason being that the path find RELIES on the grid itself to find the path( there is no good way to pathfind without a grid of some sort ), this means that if you need the character to move to X:8.25, Y:732, for example, you should use the "findPathTo" function, to move to X:8, and Y:7, THEN use the "setDestination" to move to the float value of X:8.25, Y:7.32, in a subsequent script call in the move route.


I hope this has been helpful ^.^

Yes it does help. Am I able to use it like this then in the custom move route?

this.findPathTo($gamePlayer.x -0,$gamePlayer.y);
this.setDestination($gamePlayer.x -0,$gamePlayer.y);

what is the -O part? but yes, these functions are indeed working in move routes ^^

Sorry that part was for something else unrelated. Anyway thanks for your help!