Node Navigation for NPCs (Platformer)

For questions about using Classic.

Post » Thu Jun 09, 2011 12:44 am

How would I go about having NPCs follow a path of nodes to head towards any specified object, such as a Zombie following nodes to reach a Player.

Example of what I am talking about:



[Image too large. click "View Image" to get the whole thing]
Squares = nodes
Star = Player/Goal
Diamond = NPC

The NPC would automatically detect if there is a wall he can jump over, or if there is a ledge he can jump up too.

Is this possible in Construct, or is there a better way?
B
29
S
7
G
5
Posts: 202
Reputation: 5,310

Post » Thu Jun 09, 2011 2:53 pm

Yup, that's possible. I saw a similar cap somewhere using the platform behaviour to do this (as platform behaviour has the conditions "wall on left" and "wall on right")

Not sure if it's the best way to do it, but I'd do something similar if I was making a platformer.
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest