Smart Pathfinding 8 directions following

Status
Not open for further replies.

Shiroi Akuma

Shut up and take my Monet    ( ͡° ͜ʖ ͡°)
Veteran
Joined
May 11, 2015
Messages
350
Reaction score
280
First Language
German
Primarily Uses
N/A
I would like to request some diagonal movement ability for this plugin: http://forums.rpgmakerweb.com/index.php?/topic/46761-smart-pathfinding/

While the player is able to move in 8 directions, if you want, events sadly always follow just 4 directions, which is a detour for them. Even in move route commands the move towards player function always uses just 4 directions, so a parameter/extra plugin, which would be able to let events even use 8 directions so that they can use shortcuts, would be great.  :)  

Just a suggestion. 

Thanks!
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,546
Reaction score
3,717
First Language
Java's Crypt
Primarily Uses
RMMZ
Any plugin that implements diagonal pathfinding will automatically be compatible with that one :)

I added diagonal pathfinding on my "faster pathfinding" plugin, but then removed it before releasing, because it wasn't good enough. Don't remember what the problem was, but I may look at it again at some point.
 

Shiroi Akuma

Shut up and take my Monet    ( ͡° ͜ʖ ͡°)
Veteran
Joined
May 11, 2015
Messages
350
Reaction score
280
First Language
German
Primarily Uses
N/A
Sounds good. Thanks!  :)
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,452
First Language
Portuguese
Primarily Uses
This plugin seems to use the default RM MV pathfind check (used for mouse movement), so it would probably work with this: 





EDIT: tested here and it's not totally compatible, but it's not hard to have them both working.


On the end of the plugin replace this:


      if (direction > 0)
      {
        this.moveStraight(direction);
      }


with this:

Code:
      if (direction > 0) {
		if (direction % 2 !== 0) {
			this._diagonal = direction;
			this.diagonalMovement(direction);
			if (this.needDiagonalFix()) this.diagonalMovementFix(direction);
		} else {
			this._diagonal = 0;
			this.moveStraight(direction);
		};
      }
 
Last edited by a moderator:

Shiroi Akuma

Shut up and take my Monet    ( ͡° ͜ʖ ͡°)
Veteran
Joined
May 11, 2015
Messages
350
Reaction score
280
First Language
German
Primarily Uses
N/A
Thank you very much, I will try and give feedback (edit this post) if it works :)  


Yes it works! I owe you. <3
 
Last edited by a moderator:

Sharm

Pixel Tile Artist
Veteran
Joined
Nov 15, 2012
Messages
12,760
Reaction score
10,884
First Language
English
Primarily Uses
N/A
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top