7 Replies Latest reply on Sep 11, 2006 8:24 AM by Newsgroup_User

    Blend Slow

    Level 7
      Hello:

      I want to make appear one sprite slowly. I use this:

      repeat with sp=0 to 100
      sprite(1).blend=sp
      end repeat

      the problem is that happens very quickly. How can I slow down?

      thank you


        • 1. Re: Blend Slow
          Level 7
          Try use timeout object for this sort of tasks...

          Ziggi

          Anne wrote:
          > Hello:
          >
          > I want to make appear one sprite slowly. I use this:
          >
          > repeat with sp=0 to 100
          > sprite(1).blend=sp
          > end repeat
          >
          > the problem is that happens very quickly. How can I slow down?
          >
          > thank you
          >
          >
          • 2. Re: Blend Slow
            Level 7
            Thank you.
            I Have looking for timeout command and I don't know how to use for this.


            "Ziggi" <z.szczesny@_nospam_pm-studio.pl> escribi� en el mensaje
            news:ee1un8$dj0$1@forums.macromedia.com...
            > Try use timeout object for this sort of tasks...
            >
            > Ziggi
            >
            > Anne wrote:
            >> Hello:
            >>
            >> I want to make appear one sprite slowly. I use this:
            >>
            >> repeat with sp=0 to 100
            >> sprite(1).blend=sp
            >> end repeat
            >>
            >> the problem is that happens very quickly. How can I slow down?
            >>
            >> thank you


            • 4. Re: Blend Slow
              Level 7
              Thank you very much.

              "Mike Blaustein" <mblaustein@gmail.com> escribi� en el mensaje
              news:ee24dh$jgo$1@forums.macromedia.com...
              > http://director-online.com/dougwiki/index.php/TimeOut


              • 5. Re: Blend Slow
                Level 7
                On Sun, 10 Sep 2006 19:18:14 GMT, Anne posted in macromedia.director.lingo:

                > I want to make appear one sprite slowly. I use this:

                You might want to check out the "Fade In/Out" behavior from Director's
                Library Palette. In my version, it's found under Animation->Automatic.



                --
                Mark A. Boyd
                Keep-On-Learnin' :)
                • 6. Re: Blend Slow
                  Level 7
                  Your sprite actually won't blend at all, it will go from 0 right to 100
                  because your Lingo isn't allowing for any frame refresh. There are many
                  ways to do what you want including using a library behavior as mentioned.

                  Here's another. Add this code to a behavior on the sprite you're blending.
                  Using the 1 should make is perform slowly for most reasonable frame rates.


                  on exitFrame me
                  if sprite (me.spriteNum).blend < 100 then
                  sprite (me.spriteNum).blend = sprite (me.spriteNum).blend + 1
                  end if
                  end



                  --
                  Craig Wollman
                  Word of Mouth Productions

                  phone 212 928 9581
                  fax 212 928 9582
                  159-00 Riverside Drive West #5H-70
                  NY, NY 10032
                  www.wordofmouthpros.com


                  "Anne" <anmalo42@lycos.es> wrote in message
                  news:ee1odm$724$1@forums.macromedia.com...
                  > Hello:
                  >
                  > I want to make appear one sprite slowly. I use this:
                  >
                  > repeat with sp=0 to 100
                  > sprite(1).blend=sp
                  > end repeat
                  >
                  > the problem is that happens very quickly. How can I slow down?
                  >
                  > thank you
                  >


                  • 7. Re: Blend Slow
                    Level 7
                    You can also get a smoother blend gradient by using "blendlevel" instead of
                    "blend". It goes from 0-255 instead of 0-100. If you're dragging it out
                    over a longer time, this will give you cleaner results.