Post Reply 
Need a RCoMage Script
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #2
RE: Need a RCoMage Script
Script is pretty easy, once you get it, however you need to do a few other things.

  1. Add your image frames to the <ImageTree> - look at other <Image> entries for examples
  2. 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.

  3. Now you add the animation sequence to the <AnimTree>, which looks something like:

    XML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <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.

  4. 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.
(This post was last modified: 21/11/2009 02:38 AM by ZiNgA BuRgA.)
21/11/2009 02:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Need a RCoMage Script - clispe - 19/11/2009, 04:45 PM
RE: Need a RCoMage Script - ZiNgA BuRgA - 21/11/2009 02:37 AM
RE: Need a RCoMage Script - Vegetano1 - 21/11/2009, 02:47 AM
RE: Need a RCoMage Script - ZiNgA BuRgA - 21/11/2009, 03:32 AM
RE: Need a RCoMage Script - clispe - 21/11/2009, 07:01 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: