Page 1 of 1

c++ Pathfinding script in Isometric project, how to repurpose to other templates?

Posted: Tue Aug 22, 2017 6:58 pm
by Techtime
Hi,

I've only recently noticed the pathfinding script in the isometric project, and since AI won't be added to the templates until 5.5 I'm trying to get AI to work now. How could I repurpose this to work in the other templates as AI? Thanks in advance for any replies.

Re: c++ Pathfinding script in Isometric project, how to repurpose to other templates?

Posted: Tue Aug 22, 2017 7:31 pm
by fury22uk
If I understand properly you want tu use pathfinder component as AI ?

So I would re-write it to fit my needs. You could create own component in c++ based on that component.
However I would create something like AIComponent and create there movement system just like in player, just without camera and input. You would attach pathfinder component to it later and it would drive your ai component movement.
I did something like this in 5.3 and believe me. AI is way more complicated than just pathfinding. This is the easiest part. However creating AI logic is a pain in the ass. Respect for programmers who does that.
I might be able to help more, when I record tutorial

Re: c++ Pathfinding script in Isometric project, how to repurpose to other templates?

Posted: Tue Aug 22, 2017 8:31 pm
by Techtime
Luckily the AI I need is very simple and only requires pathfinding and a few other things like checking line of sight and following the player if it is spotted, which I can do with some ray casting and some other things. Can't wait for a video on pathfinding for AI from you, until then I'll try on my own.

Re: c++ Pathfinding script in Isometric project, how to repurpose to other templates?

Posted: Wed Nov 22, 2017 1:32 pm
by Cry-Flare
We have quite a few AI video tutorials already on our YouTube channel, this includes an AI Navigation mesh introduction:
https://www.youtube.com/watch?v=NN6u_PZ ... yAMXkMvb4I

Re: c++ Pathfinding script in Isometric project, how to repurpose to other templates?

Posted: Sun Dec 17, 2017 10:36 pm
by Techtime
The video tutorials are currently for the GameSDK and use flowgraph with the LUA AI, I was thinking more recreating AI in c++.