Page 1 of 1

How can I make a friendly NPC that follows you around and attacks enemies?

Posted: Thu Nov 21, 2019 10:42 am
by Chilly14
I'd like to have some kind of Toad that does the thing I said in the title.

Re: How can I make a friendly NPC that follows you around and attacks enemies?

Posted: Thu Nov 21, 2019 11:18 am
by Cedur
This will quite surely require high-level coding.

Re: How can I make a friendly NPC that follows you around and attacks enemies?

Posted: Thu Nov 21, 2019 12:35 pm
by Emral
If you don't know how to approach the code for this I cannot help you with the details. This is a mix of all the lunalua fundamentals applied in a logically sound manner (NPC scripting, state machines, colliders, interaction with environment, edge cases like the player climbing throughout an entire level), and the fine details depend on exactly what kind of code you have in mind.