property pStartTime -- a snapshot of time when this behavior first starts property pTextMem -- the text member this script is attached to -- -- Attach this behavior to a text cast member to display elapsed time in seconds. -- Ken Loge - http://diginoodles.com -- on beginSprite me pStartTime = _system.milliseconds pTextMem = sprite(me.spriteNum).member.name end on exitFrame me -- display as seconds currentTime = string((_system.milliseconds - pStartTime) / 1000) -- update only if time is different from what is displayed if member(pTextMem).text <> currentTime then member(pTextMem).text = currentTime end if end