Basic NPC Tutorial

by DFortun81


Posted on May 23, 2006 at 8:58 PM



This tutorial was designed to help other Registered Game Maker 6.1 users with basic NPC AI. The NPCs move similar to older style RPGs such as Phantasy Star and Shining Force 2.

EDIT: I have found a bug in the script, it would not detect as well near walls. So I merged the request and the bug fix into the new version.

I hope you find this useful.
-DFortun81



SirMixAlot commented May 23, 2006 at 11:42 PM
Would be good if they had a set areaq that they would only stay in, but the main reason im commenting is to ask where the sleak graphics came from?
DFortun81 commented May 23, 2006 at 11:58 PM
RPG Maker XP, Google, etc.

-DF81
devilgoku commented May 24, 2006 at 12:18 AM
lolz i rather found this useful, kinda advanced in some ways..but useful none the less :)
DFortun81 commented May 24, 2006 at 3:04 AM
@SirMixAlot: I have finished your request, the NPC can now stay within bounds that you can specify. I have also fixed a bug in the npc_walk script, the new script can be found in the New Download.(the filename is the same, but it is different ;))

-DF81
noshenim commented May 24, 2006 at 11:27 PM
-
squeakyreaper commented May 25, 2006 at 9:57 AM
DFortun81 strikes again. Good work.
DFortun81 commented May 26, 2006 at 7:20 PM
@squeakyreaper: Thanks, although I think I've only posted one example here... (so far) :blink:

@_Player_: That is the greatest reply ever! :p

-DF81
ATOGAMES commented June 15, 2006 at 9:54 PM
niice
noshenim commented July 19, 2006 at 11:03 PM
thanks XD

not many games use moving npc... well, if it did this would be helpful, 10/10
GameMakinRyan commented November 28, 2006 at 12:53 AM
I have the full version of RPG Maker XP :D But your FFT Movement Example and this one are stellar, you're helping all the noobs who instantly want to make MMORPG's on their first day of game maker lol. JK Man, I love your examples. 9/10