Game Development Community

Player texture swapping

by Stephen Colbran · in Torque Game Engine Advanced · 08/06/2009 (2:16 am) · 4 replies

Is it possible to switch the textures of a player in TGEA (and T3D) during the game?

For example: I have a model with 3 textures, legs, shirt and head.
During the game, could I call a script (say... %this.player.setTexture("arms", "arms.1.jpg")) that would change one of the textures?

Thanks

#1
08/06/2009 (5:10 am)
Check this resource:

TGEA Dynamic Skins & Material Swapping
#3
08/06/2009 (3:24 pm)
its better use %player.setSkinName(xx); no engine changes:

www.garagegames.com/community/forums/viewthread/76757/1#comment-542870
#4
08/07/2009 (9:29 pm)
I tested it and it worked.

Thank you very much :D