The objects you load will only load the textures in the same file if the model has been textured with those textures in a modelling program.
It is possible that you have multiple models of the same object, but each of different animations. For example, you might have:
"idle.x" - The idel animation of the object
"walk.x" - The walk animation of the object
"attack.x" - The attack animation of the object
Now how do you bring all of these files together as one object in the program?
First of all, you load one of them. It doesn't matter which one. Here I picked "idle.x":
load object "idle.x",ObjectNum
Next step is to append the rest of the objects to the idle object, using the
append object command. When you load an animated object, there is a certain amount of frames it contains. Make sure you append the other objects
at the end of the loaded objects frames. You can find the amount of frames the object has with the
total object frames command:
frames=total object frames(ObjectNum)
append object "walk.x",ObjectNum,frames+1
frames=total object frames(ObjectNum)
append object "attack.x",ObjectNum,frames+1
And there you go, that's all there is to know about loading animated objects.
BTW, you can play the animations with
play object or
loop object, and stop them with
stop object.
TheComet