Path Finish

Posted:
Sat Nov 24, 2012 8:34 am
by yourownskills
I have my hero and I have my enemy...when the hero collides with this Filled region Actor the enemy follows a path....but the enemy keeps on doing the path over and over...i dont have it repeated...and i tried to do a finish path....but i couldnt find a destroy path option or something similar...I tried to destroy the filled region actor once the path is finished but that didnt work...i have tried different things for two hours and I have no idea.
Re: Path Finish

Posted:
Sat Nov 24, 2012 8:36 am
by skydereign
There isn't a destroy path, but you can use ChangePath and set it to none.
enemy -> Path Finish (hit path) -> Script Editor
- Code: Select all
ChangePath("Event Actor", "(none)", BOTH_AXIS);
Re: Path Finish

Posted:
Sat Nov 24, 2012 8:51 am
by yourownskills
thanks sky, I started working on that squirrel nuts level again. I need to finish it someday.
Re: Path Finish

Posted:
Sat Nov 24, 2012 9:00 am
by yourownskills
here is the new hero design

Re: Path Finish

Posted:
Sat Nov 24, 2012 9:05 am
by yourownskills
and here is the ninja enemy I needed that code for..
