Hi,

I'd like to animate one sprite with lingo while I jump between markers.
My problem is that when the script (below) is running all film loops at
the frame start to run very very fast. I think I shouldn't use repeat
loop here but what else i can do?

BTW Can I send events (something like sendsprite) to frame scripts?

Thanks

Kamil

-- I use sendSprite to send moveNow and moveOut values.


property pMin
property pMax
property pCurrent

on MoveLayer me, moveNow, moveOut
  pMin = 730
  pMax = 870

  if moveNow = TRUE then


    repeat while sprite(3).loch < pMax
      sprite(3).loch = sprite(3).loch + 1
      updateStage
    end repeat
  end if

  if moveOut = FALSE then

    repeat while sprite(3).loch > PMin
      sprite(3).loch = sprite(3).loch - 1
      updateStage
    end repeat

  end if

end


--
Kamil Dabkowski
Geometrek
http://stop.at/kamil


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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