• Announcements

    • RagingHobo

      Forum Upgraded!   07/17/2017

      We have successfully upgraded our forum to the latest version! Some things have moved around but don't worry everything is still there, we still need to find updated versions of the plugins we were using previously to restore everything to the way it was. There will be a running topic in the Feedback and Support in case you notice something wrong. Before you do so please clear your browser cache and close your browser completely to rule out a caching issue. Thank you for your patience during the outage and while we get everything back to 150%  
Khas

khas engine
Khas Pathfinder

9 posts in this topic

Khas Pathfinder

by Khas Arcthunder

 

- Introduction

Do you need some awesome tools? Check this one, a pathfinder! This script calculates the shortest route between two points, and it also moves any Game_Character objects with the found path.

 

- Features:

Smart pathfinding

Fast Algorithm

Easy to use

Plug’n'Play

Game_Character objects compatible

Log tool

 

- How to use:

All the instructions are on the Pathfinder demo.

Please read them carefully.

 

- Links:

Terms of Use: English – Read before use

Download: English – Latest Version

 

- Credits:

Created by Khas Arcthunder

Enjoy!

Edited by Khas

Share this post


Link to post
Share on other sites

Woah! No-one commented on this or even liked it? The world must've finally turned completely mad!

Good job on this one. I haven't tried it out yet, but if it works fine (which I assume it to do), there will be lots of people using this script.

Rosenblack likes this

Share this post


Link to post
Share on other sites

Yeah I agree with regendo, I have no idea why this is not popular, this is awesome and it should stop and path finding errors if something gets in the way + its really simple to, i'm probably going to use this in a project of mine

Share this post


Link to post
Share on other sites

Khas, the "find_path(-1,10,10,true)" to indicate wait for movement to complete doesn't appear to work. It treats the move as a parallel process whether or not I indicate nothing, false, or true.

 

That being said, thank god you made this script. There is nothing else out there, and this seems pretty damned important for games where you can't predict where objects are.

 

 

 

Billy, make an event (player touch event is easiest to get a feel for it), go to tab 3, and click Advanced - Script. Then just paste this in:

 

find_path(-1,x,y)

 

This makes your player move to coordinate x,y. So find_path(-1,21,10) moves the player to 21,10.

 

If you have an NPC with ID:004, use:

 

find_path(4,21,10)

 

To send the NPC to 21,10.

Edited by Jamaz

Share this post


Link to post
Share on other sites

The script does prevent any user input from occurring while moving, but events still override the script. An example is I want to run an event once the player reaches the destination. Any event after the script find_path(-1,x,y,true) instead occurs immediately.

 

move.jpg

 

(9,3) is to the left of the player. However, the player immediately moves right 2x instead and stops. Or I want the player to reach the end and then have a text box, but the text box comes up right away. It's very minor and I've made a work around by calling a new event on the spot as a new player touch, but it starts to get difficult if I'm making other events move around and watch them. Then I have to try to time everything exactly and put in a wait x frames after the script.

Share this post


Link to post
Share on other sites

How do I make it so an event, not the player, moves to that spot?

 

Edit: Nvm I figured it out, but now i don't know how to get the event to follow me.

I need a good chaser here.

Edited by BMoz1

Share this post


Link to post
Share on other sites

Hey Khas,

 

I am having a similar problem to Dark Horseman did (3 years ago, now). The 'wait' command doesn't appear to be working.

 

I have an event with "find_path(0,4,11,true)". After the event has moved to 4,11 a self-switch is meant to turn on, changing the event page to one without a graphic (to give the appearance that the event disappeared).

 

However, the event disappears instantly upon being triggered - before it can move to 4,11.

 

Is there a fix for this? 

 

- In saying that, it's still an awesome script and really helpful (among some of your others) to have in my project, so thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.