ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
|
RE: Need a RCoMage Script
Script is pretty easy, once you get it, however you need to do a few other things.
- 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:
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:
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
Hope that helps - post back if you don't understand any part.
(This post was last modified: 21/11/2009 02:38 AM by ZiNgA BuRgA.)
|
|
21/11/2009 02:37 AM |
|
Vegetano1
$urf
Posts: 9,083.2507 Threads: 397
Joined: 2nd Mar 2007
Reputation: 6.06988
E-Pigs: 2756.6280
|
RE: Need a RCoMage Script
%^^^ i would use recolour in anim and set alpha to "0" for each object in object tree,.. to avoid the "show all" images at start up thingy,..
|
|
21/11/2009 02:47 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
|
RE: Need a RCoMage Script
|
|
21/11/2009 03:32 AM |
|
clispe
Paradigmatic Entity
Posts: 215.7820 Threads: 39
Joined: 16th Mar 2009
Reputation: 1.62242
E-Pigs: 23.7022
|
RE: Need a RCoMage Script
okay thanks I will try I didn't know about the object tree and anim tree :P
|
|
21/11/2009 07:01 AM |
|