- Add your image frames to the <ImageTree> - look at other <Image> entries for examples
- Copy a <Plane> object inside the <ObjectTree>, edit the "image" attribute to point to your image, for example:
XML Code<Plane name="my_object1" posX="0" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="1" width="480" height="272" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:my_image" unknownInt18="0x0"></Plane>
In the above, you've got a new Plane object named "my_object1" (it can be named anything as long as it doesn't conflict with something already there) which has an image named "my_image". You may wish to change the posX/posY and width/height attributes as well.
You need to make a new object for every frame or image that you added in step 1. Each object should link to each image you added.
Be aware of where you're adding the <Plane> objects though. To start off, just trying adding them after existing <Plane> objects.
- Now you add the animation sequence to the <AnimTree>, which looks something like:
XML Code<Animation name="my_anim"> <Fade object="object:my_object1" duration="0" unknown1="0x0" transparency="1" /> <Delay time="100" /> <Fade object="object:my_object1" duration="0" unknown1="0x0" transparency="0" /> <Fade object="object:my_object2" duration="0" unknown1="0x0" transparency="1" /> <Delay time="100" /> <Fade object="object:my_object2" duration="0" unknown1="0x0" transparency="0" /> <Fade object="object:my_object3" duration="0" unknown1="0x0" transparency="1" /> <Delay time="100" /> <Fade object="object:my_object3" duration="0" unknown1="0x0" transparency="0" /> <FireEvent event="anim:my_anim" /> </Animation>
Basically, the above says to display "my_object1", then, after 100ms (0.1 seconds), hide "my_object1" and show "my_object2", then wait for another 0.1 seconds and hide "my_object2", show "my_object3", wait 0.1 seconds, then hide "my_object3" and repeat the entire animation sequence.
- Now the final step is to trigger the animation. Go back to one (don't apply this to more than one) of the Plane objects you added, and edit the "onLoad" value - change it to something like
Code:onLoad="anim:my_anim"
Hope that helps - post back if you don't understand any part.