pangloy

Veteran
Veteran
Joined
Nov 13, 2018
Messages
30
Reaction score
0
First Language
Thai
Primarily Uses
RMMV
Hello!
I set NPC "move towards player".
But if I stand behind somthing NPC can't come to me.

How to make it smarter?
Thank you. :kaocry:
181125111923.jpg
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,693
Reaction score
3,023
First Language
Tagalog
Primarily Uses
RMVXA
By writing an algorithm that checks for things like if the path between the player and the event is blocked etc..

basically, by making a smarter algorithm
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,346
Reaction score
1,840
First Language
Portuguese - Br
Primarily Uses
RMMZ
Try some plugins like yanfly move route, qpathfind etc.
 

pangloy

Veteran
Veteran
Joined
Nov 13, 2018
Messages
30
Reaction score
0
First Language
Thai
Primarily Uses
RMMV
I use "Shaz's SMARTPATH" Plugin

-----------
181125030314.jpg


SmartPath eventId1 eventId2 # Makes event 1 find path to event 2

event = number for specific event
event = 0 for "this" event
event = -1 for player
--------
Enemy did not move:kaocry:
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,647
Reaction score
15,735
First Language
English
Primarily Uses
RMMV
You need to use a plugin command, not a script call in a movement route.
 

Latest Threads

Latest Posts

Latest Profile Posts

DNPwhy.gif

You're using that item wrong... TwT

Trying to get the mechanics down for a cute, story-driven board game! I think I've accomplished dice movement, item effects, and activating a space's event when you land on it. Art is WIP. Hope to open a thread about the game soon!
My entire family and I have Covid... If it's this bad with the vaccine, without must be terrible. Stay safe, everyone. This thing is a doozy.
Ugh. Head heavy with sick juice. I wish I could work on my stuff. o_O

Forum statistics

Threads
118,521
Messages
1,116,604
Members
155,534
Latest member
aubycringe
Top