hey list -- 
Seems like i have been working around this for a while and figured that now
is the time to set it right. I have a continuous animation going on in in my
background (just a bunch of lines moving horizontally across the stage). I
have set this up in a pretty small repeat loop that operates fine... Until I
encounter quicktime or another function runs. When it hits the quicktime it
slows dramatically -- if i run another function it increases while
processing the function after the function it runs fine. We have abandoned
almost all continous background animations on previous cds because of this
(we have a lot of quicktime which is essential). So I have included my
script, but i don't really think that is the issue -- I think I am
approaching continous animations wrong as far as thought process. Any clues
-- thanks.
-- carol


property pStartPosition
property pCurrentPosition
property pEndPosition
property pSpeedPosition


on getPropertyDescriptionList me
  description = [:]
  addProp description, #pStartPosition,[#comment "Location start", #format
#integer, #default 0]
  addProp description, #pEndPosition,[#comment "Location end", #format
#integer, #default 800]
  addProp description, #pSpeedPosition,[#comment "Speed", #format #integer,
#default 1]
  return description
end

on beginSprite me
  sprite(me.spriteNum).locH = pStartPosition
end

on exitFrame me
  pCurrentPosition = sprite(me.spriteNum).locH
  if pCurrentPosition < pEndPosition then
    sprite(me.spriteNum).locH = pCurrentPosition + pSpeedPosition
  else if pCurrentPosition > pEndPosition then
    sprite(me.spriteNum).locH = pStartPosition
  end if
end

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to