Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, VoroneTZ, 1 invisible), 862 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pathfind/Follow the Player #367291
04/11/11 16:14
04/11/11 16:14
Joined: Apr 2011
Posts: 5
5510 Offline OP
Newbie
5510  Offline OP
Newbie

Joined: Apr 2011
Posts: 5
I've done everything I programmed all the states and do they have to alternate the way I want, but I can't succeed in making the player do this enemy without hitting the obstacles such as walls and other enemies. I'm doing both a pathfinder that only active if the enemy does not see the player then it finds the shortest path to reach it.
I've done it follow the player just need it to find the way to the player if there are obstacles ahead.
I do not know if it is very difficult to make, but if someone can give me some tips on how to program the Pathfinder ...

Anyone?

Re: Pathfind/Follow the Player [Re: 5510] #367293
04/11/11 16:38
04/11/11 16:38
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Have you looked at the breadcrumb AI found in AUM magazine issues? Just go to AUM magazine and search for 'breadcrumb', basically the player drops invisible breadcrumbs which the ai uses to follow the player. If they are dropped at close intervals it makes for a very exact path to the player, and no pathfinding would be needed.

Re: Pathfind/Follow the Player [Re: NITRO777] #367305
04/11/11 18:34
04/11/11 18:34
Joined: Apr 2011
Posts: 5
5510 Offline OP
Newbie
5510  Offline OP
Newbie

Joined: Apr 2011
Posts: 5
Thanks, but I could not find the example of breadcrumbs. Could you please give me the link?

Last edited by 5510; 04/11/11 18:39.
Re: Pathfind/Follow the Player [Re: 5510] #367315
04/11/11 20:09
04/11/11 20:09
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Sure!

Team allies breadcrumb code is AUM 76
Enemy breadcrumb is shooter template AUM 96 and AUM 97 You will have to do a little searching in the AUM magazine link address right here on this forum page grin Look left for links!

<-------
<-------
<--------

Re: Pathfind/Follow the Player [Re: NITRO777] #367317
04/11/11 20:38
04/11/11 20:38
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
"breadcrump", funny name actually.

The Companion Ai I posted long ago used the same logic.

Its mainly about to use the players walked path (indicated by
dropped positiondata) to have the AI follow a meaningful way.

So the player is actually the Pathfinder.
And the AI is like a sniff-dog.

Re: Pathfind/Follow the Player [Re: NITRO777] #367377
04/12/11 18:41
04/12/11 18:41
Joined: Apr 2011
Posts: 5
5510 Offline OP
Newbie
5510  Offline OP
Newbie

Joined: Apr 2011
Posts: 5
Thanks, I'm adapting the code of AUM 96 for my project.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1