Hi,

> Thanks for reply
> I found that by using the following script I get the result that is
> expected, that is a lingo set frame tempo but if you could
> explain to me
> what exactly what [ set pLastMilliseconds =...  ]is doing -
> how and why-
> It would help. And should I be using the ticks instead?

1 tick = 1/60 second = 1000/60 milliseconds (~16.67)

Knowing this, you should be able to do a fps handler (I assume it's the
purpose of the handler below)
But I cannot find the origin of the 1.3000 ?! ...

> In a movie script
> puppetTempo 0
> ------------
>
> score script
> ---------------
> property pMember
> property spriteNum
> property pLastMilliseconds
>
> on beginSprite me
>   set pMember = the member of sprite (spriteNum)
>   set pLastMilliseconds = 1.000
> end
>
> on exitFrame me
>   set  nMillisecondsElapsed =   1.300 - pLastMilliseconds
>   set fps = 1000.0 / float(nMillisecondsElapsed)
>   set the text of member pMember =  fps && " fps"
>   set pLastMilliseconds = 1.000
> end
>
> CMMMMI
>
> [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!]
>
>


[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