Moving a player controled ShapeBase along a path
by Tom Spilman · in Torque Game Engine · 02/16/2005 (10:50 pm) · 2 replies
I'm needed to move a ShapeBase derived object along a path, but with some limited movement options (strafe up,down,left, and right). Yes this is for a sort of side scroller.
The dirty way seems to be to cut and paste code from AIPlayer or maybe PathCamera into my class. What i'm considering is using an AIPlayer without an shape, moving it along the path, and mounting my ShapeBase to the AIPlayer. Is this a feasible approch? Could i then change my mount offset to give the player the control it needs?
Any other ideas i'm not considering?
The dirty way seems to be to cut and paste code from AIPlayer or maybe PathCamera into my class. What i'm considering is using an AIPlayer without an shape, moving it along the path, and mounting my ShapeBase to the AIPlayer. Is this a feasible approch? Could i then change my mount offset to give the player the control it needs?
Any other ideas i'm not considering?
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
#2
02/21/2005 (9:21 am)
Because my game involves a mix of first person flight and this scroller type movement. I'm currently adding a "scroller mode" to my FlyingVehicle drived class taken from PathShape. I considered just switching between two different player controlable objects, but we want a smooth camera transition an all.
Associate Kyle Carter