Make custom NPC change direction

Need help with any SMBX game-related issues? Ask your questions here.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on-topic/appropriate?
-Are you posting in the right forum/following the forum rules?
User avatar
ToolJule
Shy Guy
Shy Guy
Posts: 6
Joined: Fri May 03, 2019 11:08 am
Current Project: Raumina
Chat Username: ToolJule
Contact:

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
cato
Bit
Bit
Posts: 135
Joined: Thu Aug 24, 2017 3:06 am
Current Project: My episode
Chat Username: Cato
Contact:

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 1 guest