Post Reply 
Need a RCoMage Script
Author Message
clispe
Paradigmatic Entity

Posts: 215.7820
Threads: 39
Joined: 16th Mar 2009
Reputation: 1.62242
E-Pigs: 23.7022
Offline
Post: #1
Need a RCoMage Script
this things getting to hard, can someone help make me a simple 4 frame animation script and i can send u the files Emptyone
19/11/2009 04:45 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
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
Vegetano1
$urf

Posts: 9,083.2507
Threads: 397
Joined: 2nd Mar 2007
Reputation: 6.06988
E-Pigs: 2756.6280
Offline
Post: #3
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,..


Make loads of $$!! it wurks!!
[Image: csbanner_anim_03.gif]
Signed Homebrew by bsanehi & OMightyBuggy
http://endlessparadigm.com/forum/showthr...?tid=25707
Spoiler for My miniBlog:
21/11/2009 02:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
Offline
Post: #4
RE: Need a RCoMage Script
Yes, but start basic :P
21/11/2009 03:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
clispe
Paradigmatic Entity

Posts: 215.7820
Threads: 39
Joined: 16th Mar 2009
Reputation: 1.62242
E-Pigs: 23.7022
Offline
Post: #5
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
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: