Game Development Community

Changing character shapefile dynamically

by Nmuta Jones · in Torque Game Engine · 08/11/2005 (7:55 pm) · 3 replies

I need to swap out my character at a certain level. Let's say when I get promoted in the game, I change from an orc to a dwarf.

What is the best way to do this in Torque? Should I kill the character and respawn a new one in the exact same location, or is there a more elegant way? Keep in mind that each new character I would morph to has its own set of animations, of course.

(I already have my characters set up, each with their own datablocks and .dsq animations ready, so it's really just a matter of how to engineer the swap).

#1
08/11/2005 (9:22 pm)
%player.datablock = Dwarf;

%player.datablock = Orc;
#2
08/11/2005 (9:54 pm)
Gamebase::setdatablock(datablock db)
#3
08/12/2005 (5:37 am)
Grazie