Game Development Community

How to move the player on a predetermined path?

by Jack Cicci · in Technical Issues · 08/19/2008 (3:10 am) · 4 replies

(sorry for my poor english)

Please Help

I want to define a lot of intersecting paths (like rail tracks) where to move my controlled player on...

but i dont know how to do...

I dont want to use polygon collision to constrain player movement...

Is possible define paths like using TGB's "path tool", but move player on them?

#1
08/19/2008 (10:37 am)
There is a class called Path and a class called Marker (a node on the path), you can create these in the WorldEditor and can find the source code in SimPath.h. I believe AIPlayers are setup to "know" how to follow a Path.
#2
08/21/2008 (2:49 am)
I know "pathing" for AI player but im interested in how to "path" my controlled player...
I want to define path, using Markers as nodes, and on that path move my hero...
#3
08/21/2008 (2:54 am)
You should be able to use an AIPlayer just like you would a Player (only considering pathfinding), since AIPlayer is a child of Player.
#4
08/21/2008 (3:14 am)
I'll try...