Page 1 of 1

Make custom NPC change direction

Posted: Thu Jul 04, 2019 12:20 pm
by ToolJule
So I tried making my own custom NPC in 2.0, mainly following Enjl's tutorial, and now I have a problem where my NPC (that's just normally walking on the ground) doesn't turn around on collision with other objects, it just kind of spazes out. Same for cliffs when I set "cliffturn" to "true".

I'm just LunaLUA beginner, so help is appreciated.

Re: Make custom NPC change direction

Posted: Mon Sep 09, 2019 10:55 am
by cato
Do "Object" means blocks or NPCs?
I believe you can just set NPCblock=1 to make NPC collide with each other, or noblockcollision=0 to make NPC collide with blocks.