Game Development Community

How do I use a path object in the level builder?

by Chris Vallance · in Torque Game Builder · 04/17/2006 (11:04 pm) · 2 replies

I created a simple path object, just two points, then tried mounting a sprite to the path with some velocity applied to it. My hope was that the moving sprite would follow the path. Instead, it just locks onto the center of the path object and doesn't move. What am I doing wrong?

Thanks for any help you can provide.

#1
04/18/2006 (2:47 pm)
Simply mount the object to one of the path nodes. Afterwards the path part of the objects edit tab will give you options you can modify if needed.
#2
04/18/2006 (3:49 pm)
Okay, forget the level builder for the moment. All I want to use it for is to create, name, and position my path. From there, I already have a function that spawns new sprites when called, and I just want those sprites to follow the path instead of moving in a straight line. Do I need a new function? Is there something I can do with the mount command to communicate this desire?

Thanks.