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,291
Reaction score
1,789
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,149
Reaction score
15,537
First Language
English
Primarily Uses
RMMV
You need to use a plugin command, not a script call in a movement route.
 

Latest Threads

Latest Profile Posts

Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​

Forum statistics

Threads
117,162
Messages
1,105,061
Members
153,249
Latest member
Jon_Doe
Top