Here's a way of displaying it on the screen. Just create a field
member, drag it to a channel in the score, put the following code
into a behavior script and attached it to the field on the stage.
property pMember
property spriteNum
property pLastMilliseconds
on beginSprite me
pMember = sprite(spriteNum).member
pLastMilliseconds = the milliseconds
end
on exitFrame me
nMillisecondsElapsed = the milliseconds - pLastMilliseconds
fps = 1000.0 / float(nMillisecondsElapsed)
member(pMember).text = fps && " fps"
pLastMilliseconds = the milliseconds
end
At 11:26 PM +0700 4/18/01, Victor Iwan wrote:
>Is there anyway to display actual frametempo by lingo ??
>
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[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!]