How to use FlxPath

29 views
Skip to first unread message

creepez

unread,
Apr 3, 2016, 10:05:16 AM4/3/16
to HaxeFlixel
I am having problems using flxpath.

I made flxpath and nodes for it,
But i dont know how to make player folow that path.

For example i  can write path.start(nodes,speed);
but i dont see option to include player anywhere.

How to make that object folow that path?

Seb Jones

unread,
Apr 3, 2016, 11:09:51 AM4/3/16
to HaxeFlixel
FlxSprites actually have a path object already, so you can just do something like player.path.start(nodes, speed);

No need to create your own :)
Reply all
Reply to author
Forward
0 new messages