Game Development Community

side-scrolling and player's path

by Alexandre Ribeiro de Sa · in Torque 3D Professional · 06/29/2010 (11:56 am) · 3 replies

Hello,

I'm doing some tests with T3D and I'd like to build a 2D side-scrolling like camera...

I've found two ways to do this, but the best one and more flexible is create a path and the player and NPCs will can follow this path, and I can change the path to follow with triggers to create more than one way and create a gameplay like "Goemon's Great Adventure" for Nintendo 64.

So, I'm reading the documentation and I own the 3D Adventure Kit from UBIQ too, this os was a great start point, but I still have one questions.

The main question is, how to set the player's path, I've done it with T2D (Torque Game Builder) but I didn't found how to do something like in T3D, so, I can do this with scripts or I need to edit the T3D source (C++)?

(Goemon's Great Adventure gameplay)

All the best!
Alexandre

#1
07/01/2010 (5:34 pm)
I'm was reading the forum and I've found some options, one is create something like aiPath... :)

There any other option??
#2
07/02/2010 (7:43 am)
The cleanest way would be doing source changes to force the player to always move along a path. The likeliest places are Player::UpdateMove() (where the move ins processed and the rotation and velocity are calculated) and Player::updatePos() (which takes the velocity and moves the player).

Using script, you'd need to do some hacks like indirectly controlling an AiPlayer so you can make it move along a path.
#3
07/02/2010 (9:11 am)
Thanks Manoel, I'm was thinking in something like this about the AiPath.

And thanks about the UpdateMove() and updatePos() too! :D