Make custom NPC change direction

Need help with any SMBX game-related issues? Ask your questions here.
Shy Guy
Shy Guy
Posts: 6
Joined: Fri May 03, 2019 11:08 am
Current Project: Raumina
Chat Username: ToolJule

Make custom NPC change direction

Postby ToolJule » Thu Jul 04, 2019 12:20 pm

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.

User avatar
Posts: 401
Joined: Thu Aug 24, 2017 3:06 am
Flair: Creative, opinionated, but poor expression
Current Project: ... sp=sharing
Chat Username: Cato

Re: Make custom NPC change direction

Postby cato » Mon Sep 09, 2019 10:55 am

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.

Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 12 guests