1 Reply Latest reply on Jun 26, 2006 2:59 AM by Newsgroup_User

    Move a sprite (film loop)

    Level 7
      Dear all:

      Thank you for your help.
      I have a sprite (film loop) and I want that jump three times with a delay
      between. I have This is down a button.

      property pMyball, pJumpPos , MiVel

      On beginSprite me
      pMyball = sprite (15)
      MiVel = 50
      pJumpPos=pMyball.LocH
      end

      On mouseUp me
      Moveball 3
      end

      On Rewindloop me
      Tell Sprite(15)
      go to frame 1
      end tell
      end

      On Moveball times
      repeat with x= 1 to times
      pMyball.locH = pMyball.locH + MiVel
      --delay
      t= the ticks + 20
      repeat while the ticks < t
      end repeat
      Rewindloop
      end repeat

      end

      The delay does not work. Can you help me please?



        • 1. Re: Move a sprite (film loop)
          Level 7
          Because your animation is insode of a loop you may need to add an update
          Stage command


          On Rewindloop me
          Tell Sprite(15)
          go to frame 1
          end tell
          updateStage --- forces immediate redraw of stage
          end


          if the film loop seems to not repond to tell, try using a director movie
          imported as a linked external file, this allows scripts within the movie
          to operate.