[F8] Help with NPC random movement and interaction
Hello everyone,
I am trying to work out a drag and drop NPC with random movement that you can interact with. I finally found some script that makes him move like I would want him to(classic RPG) but can't figure out how to get him to change the way he faces with the direction he is moving. I have left right, up, down, resting clips and then speaking that would eventually show on a mouse click. Can someone please help or direct me the right way??? This would also need an invisible wall in the clip so he doesn't randomly move outside of his area.
I have been combing the net but can't seem to find anyone that is doing anything like this. Please look over my file and let me know if this Is possible? Everything is inside and neatly situated. Thanks in advance =)
Thanks a million PRadvan.. looks and works beautifully..
I had to take off all the _root.wall.hitTest code under your modifications because they were giving me some errors. I will have to try and figure out that invisible wall part next so he doesn't keep walking off the screen constantly!
If anyone has any ideas let me know.. either way If I get it working completely I will post the new file and hopefully others can get some use out of it as well. Thanks again!