Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Pathfinding AI problems

Author
Message
M Team Studios
7
Years of Service
User Offline
Joined: 12th Jul 2017
Location:
Posted: 22nd Dec 2018 01:03
Hi guy's. looks like i'm back at making games again with our old good engine FPSC.

by the way how do i make a monster find it's path finding i can't seem to find the code for it or the script

and the monster keeps getting stuck in the wall and it's glitch problems

please help i need some help




this is my last post anyway so sorry about that
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 22nd Dec 2018 12:36
M Team If I understand you correctly, you want to use one of the scripts with the "follow waypoints"
in the "people" folder. The "follow.fpi" is a basic waypoint script to start with. You'll want to expand
with that script though. As for your npc getting stuck in walls that's a different problem.
You may need to explain your situation a little more if this is not what your after ?
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
uzi idiot
Valued Member
14
Years of Service
User Offline
Joined: 27th Dec 2009
Location: Who Knows?
Posted: 2nd Jan 2019 12:24
Dark AI is the only way to use automatic pathfinding. All of the stock scripts just run straight for the player, even through walls.
You could script your own to fake it.
I'm working on a general character script that uses a raycast to see if it's hit a wall and then turns in a random direction to walk again before going back to the player direction.
That's how the doom engine did it and it works okay for dumb monster AI.
If something compiles on the first try. Something is terribly wrong.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 3rd Jan 2019 22:03
@ uzi idiot
Quote: "I'm working on a general character script that uses a raycast "

Nice to see some still using this. I used a lot of raycast on some scripts with sort of limited success.
I hope your turns out better
My games never have bugs. They just develop random features..
Lots and lots of random features...
Location: You know that space between a dresser and the floor ? Yeah, that's where
uzi idiot
Valued Member
14
Years of Service
User Offline
Joined: 27th Dec 2009
Location: Who Knows?
Posted: 4th Jan 2019 21:12
Here's my AI scripts so you can see how/if it works for you

https://forum.thegamecreators.com/thread/223561
If something compiles on the first try. Something is terribly wrong.

Login to post a reply

Server time is: 2024-11-23 08:17:31
Your offset time is: 2024-11-23 08:17:31