Game Development Community

How to change the texture in runtime...?

by Chan Chi Kit · in Torque Game Engine · 12/06/2005 (9:52 am) · 0 replies

What is the appropriate way to change texture for the models in runtime...?

I have already put required texture files (png format) to the same folder, however, when I input the following command in the World Editor

1677.setSkinName(brown.player);

it said "Could not locate texture: tutorial.base/data/shapes/Boo/player" & "Mapping String: green to index 13"

Boo - it is the directory to save the texture files, dts files and dsq files

I also tried to create a folder of "player" under "Boo", but it output the same message...

My texture file name : base.player.png & brown.player.png

The model I tested is the green player which come with TGE.

Thanks!!!