How do I go about creating path finding and AI tasks in C2?

Get help using Construct 2

Post » Fri Sep 04, 2015 3:27 am

I cant find any simple to understand examples. Basically Im asking how to bake nav meshes into Construct 2, and how do most people approach this problem. So NPCs and such know how to navigate around solid objects or object types (not solid, just types) and know where to move. Some engines this is easier than others. And I just dont know how. Like not even the commands.
B
4
Posts: 27
Reputation: 254

Post » Fri Sep 04, 2015 3:34 am

There are path finding behaviours. But the AI is normally programmed in Events.
Stuff I'm working on:



http://www.jamdonut.com
B
13
S
3
Posts: 88
Reputation: 1,025

Post » Fri Sep 04, 2015 5:23 pm

aJamDonut wrote:There are path finding behaviours. But the AI is normally programmed in Events.


Hmm, I wonder if anyone knows the common way to go about this in Construct 2
B
4
Posts: 27
Reputation: 254

Post » Fri Sep 04, 2015 5:28 pm

Message: Frostein can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
go to 11:40 https://www.youtube.com/watch?v=jm7vfQ60OUc

<3
B
9
S
3
Posts: 104
Reputation: 1,033

Post » Fri Sep 04, 2015 5:49 pm

System every X seconds > 'Your Sprite Object' Find path to 'Your Sprite Object 2'

is the basic way to get things moving to a target. Set the Variable 'Moving' to 'Your Sprite Object'

On path found if 'Moving is 'False' > Move along path

Is moving along path > set 'Moving' to 'True'

Use the compare distance tool to select how far you want to stop from an object

if 'Your Sprite Object 2.X' is less than 'Your Sprite Object.X' > 'Your Sprite Object' Stop
'Your Sprite Object' set 'Moving' to 'False'

if 'Your Sprite Object 2.Y' is less than 'Your Sprite Object.Y' > 'Your Sprite Object' Stop
'Your Sprite Object' set 'Moving' to 'False'


You can use 'is moving along path' to trigger other events when the sprite is moving along its path

Hope it helps.
B
9
S
3
Posts: 104
Reputation: 1,033

Post » Fri Sep 04, 2015 10:35 pm

wow thx, I hope theere are more ways out ther ebut this is a start!!!1
B
4
Posts: 27
Reputation: 254


Return to How do I....?

Who is online

Users browsing this forum: MassimoF, Microbex and 27 guests