On Mon, 10 Jan 2011, Bruno Dilly wrote:

> On Mon, Jan 10, 2011 at 4:27 AM, Vincent Torri <vto...@univ-evry.fr> wrote:
>>
>> Hey
>>
>> for the shoot'm up i'm writing, i would like to have some animations
>> (explosions, power ups, ...). I have 2 questions about these animations:
>>
>> 2) For power ups, ennemies, etc..., the animation is infinite. It's the
>> same than explosions except that it does not end. If there are 4 images
>> for the animation, the sequence is
>>
>> #1 #2 #3 #4 #1 #2 #3 #4 #1 #2 etc...
>>
>> I just have no idea on how to achive that with edje (maybe using embryo
>> ?).
>
> Maybe just setting the program to run after itself. In your explosion example,
>
>       program {
>          name: "start_explosion";
>          signal: "start";
>          action: STATE_SET "explode" 0.0;
>          transition: LINEAR 0.5;
>          target: "explosion1";
>          after: "start_explosion";
>       }
>
> Give it a try and give us feedback if it works =)

indeed, it works, thanks :) I paste below the part of the theme, maybe 
someone (watchwolf ?) will do a small tuto with that

Vincent

    group {
       name: "crystal1";
       images {
          image: "crystal1_1.png" COMP;
          image: "crystal1_2.png" COMP;
          image: "crystal1_3.png" COMP;
          image: "crystal1_4.png" COMP;
          image: "crystal1_5.png" COMP;
          image: "crystal1_6.png" COMP;
          image: "crystal1_7.png" COMP;
          image: "crystal1_8.png" COMP;
       }
       min: 25 25;
       max: 50 50;
       parts {
          part {
             name: "crystal1";
             type: IMAGE;
             mouse_events: 0;
             description {
                state: "default" 0.0;
                visible: 0;
                aspect: 1.0 1.0;
                image {
                   normal: "crystal1_1.png";
                   tween: "crystal1_2.png";
                   tween: "crystal1_3.png";
                   tween: "crystal1_4.png";
                   tween: "crystal1_5.png";
                   tween: "crystal1_6.png";
                   tween: "crystal1_7.png";
                   tween: "crystal1_8.png";
                }
             }
             description {
                state: "rotate" 0.0;
                inherit: "default" 0.0;
                visible: 1;
                color: 255 255 255 255;
             }
          }
       }
       program {
          name: "start_crystal1";
          signal: "start";
          action: STATE_SET "rotate" 0.0;
          transition: LINEAR 0.5;
          target: "crystal1";
          after: "start_crystal1";
       }
    }


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to